Examples of TechnicalException


Examples of org.pac4j.core.exception.TechnicalException

    /**
     * {@inheritDoc}
     */
    @Override
    protected CasProfile retrieveUserProfile(final CasCredentials credentials, final WebContext context) {
        throw new TechnicalException("Not supported by the CAS proxy receptor");
    }
View Full Code Here

Examples of org.pac4j.core.exception.TechnicalException

            final String redirectionUrl = authRequest.getDestinationUrl(true);
            logger.debug("redirectionUrl : {}", redirectionUrl);
            return RedirectAction.redirect(redirectionUrl);
        } catch (final OpenIDException e) {
            logger.error("OpenID exception", e);
            throw new TechnicalException("OpenID exception", e);
        }
    }
View Full Code Here

Examples of org.pac4j.core.exception.TechnicalException

                logger.debug("profile : {}", profile);
                return profile;
            }
        } catch (final OpenIDException e) {
            logger.error("OpenID exception", e);
            throw new TechnicalException("OpenID exception", e);
        }

        final String message = "No verifiedId found";
        logger.error(message);
        throw new TechnicalException(message);
    }
View Full Code Here

Examples of org.pac4j.core.exception.TechnicalException

                if (keepRawData && isRootObject()) {
                    this.data = jsonNode.toString();
                }
                buildFromJson(jsonNode);
            } else {
                throw new TechnicalException(json.getClass() + " not supported");
            }
        }
    }
View Full Code Here

Examples of org.pac4j.core.exception.TechnicalException

                return client;
            }
        }
        final String message = "No client found for name: " + name;
        logger.error(message);
        throw new TechnicalException(message);
    }
View Full Code Here

Examples of org.pac4j.core.exception.TechnicalException

            }
          }
        }
        final String message = "No client found for class: " + clazz;
        logger.error(message);
        throw new TechnicalException(message);
    }
View Full Code Here

Examples of org.pac4j.core.exception.TechnicalException

     * @param value the value to be checked for truth
     * @param message the message to include in the exception if the value is false
     */
    public static void assertTrue(final boolean value, final String message) {
        if (!value) {
            throw new TechnicalException(message);
        }
    }
View Full Code Here

Examples of org.pac4j.core.exception.TechnicalException

    public void writeResponseContent(final String content) {
        if (content != null) {
            try {
                this.response.getWriter().write(content);
            } catch (final IOException e) {
                throw new TechnicalException(e);
            }
        }
    }
View Full Code Here

Examples of org.pac4j.core.exception.TechnicalException

    private static String encodeText(final String text) {
        try {
            return URLEncoder.encode(text, "UTF-8");
        } catch (final UnsupportedEncodingException e) {
            logger.error("Unable to encode text : {} / {}", text, e);
            throw new TechnicalException(e);
        }
    }
View Full Code Here

Examples of org.pac4j.core.exception.TechnicalException

            this.response.setStatus(code);
        } else {
            try {
                this.response.sendError(code);
            } catch (final IOException e) {
                throw new TechnicalException(e);
            }
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.