Package org.apereo.cas.authentication
Class PrincipalException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apereo.cas.authentication.RootCasException
org.apereo.cas.authentication.AuthenticationException
org.apereo.cas.authentication.PrincipalException
- All Implemented Interfaces:
Serializable
Describes a principal resolution error, which is a subcategory of authentication error.
Principal resolution necessarily happens after successful authentication for a given credential.
- Since:
- 4.0.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPrincipalException(String message, Map<String, Throwable> handlerErrors, Map<String, AuthenticationHandlerExecutionResult> handlerSuccesses) Creates a new instance. -
Method Summary
Methods inherited from class org.apereo.cas.authentication.AuthenticationException
getHandlerErrors, getHandlerSuccessesMethods inherited from class org.apereo.cas.authentication.RootCasException
getArgs, withCodeMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
PrincipalException
public PrincipalException(String message, Map<String, Throwable> handlerErrors, Map<String, AuthenticationHandlerExecutionResult> handlerSuccesses) Creates a new instance.- Parameters:
message- Error message.handlerErrors- Map of handler names to errors.handlerSuccesses- Map of handler names to authentication successes.
-
-
Method Details
-
getCode
Description copied from class:RootCasExceptionIf there is a chained exception it recursively callsgetCode()on the cause of the chained exception rather than the returning the code itself.- Overrides:
getCodein classRootCasException- Returns:
- Returns the code.
-