Class UnresolvedPrincipalException
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
org.apereo.cas.authentication.exceptions.UnresolvedPrincipalException
- All Implemented Interfaces:
Serializable
public class UnresolvedPrincipalException
extends org.apereo.cas.authentication.PrincipalException
Describes an error condition where a principal could not be resolved.
- Since:
- 4.0.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionUnresolvedPrincipalException(Map<String, Throwable> handlerErrors) Instantiates a new Unresolved principal exception.UnresolvedPrincipalException(org.apereo.cas.authentication.Authentication authentication) Creates a new instance from an authentication event that was successful prior to principal resolution.UnresolvedPrincipalException(org.apereo.cas.authentication.Authentication authentication, Exception cause) Creates a new instance from an authentication event that was successful prior to principal resolution. -
Method Summary
Methods inherited from class org.apereo.cas.authentication.PrincipalException
getCodeMethods 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
-
UnresolvedPrincipalException
public UnresolvedPrincipalException(org.apereo.cas.authentication.Authentication authentication) Creates a new instance from an authentication event that was successful prior to principal resolution.- Parameters:
authentication- Authentication event.
-
UnresolvedPrincipalException
public UnresolvedPrincipalException() -
UnresolvedPrincipalException
-
UnresolvedPrincipalException
Instantiates a new Unresolved principal exception. Successes are tracked as an empty map.- Parameters:
handlerErrors- the handler errors
-
UnresolvedPrincipalException
public UnresolvedPrincipalException(org.apereo.cas.authentication.Authentication authentication, Exception cause) Creates a new instance from an authentication event that was successful prior to principal resolution. This form should be used when a resolver exception prevented principal resolution.- Parameters:
authentication- Authentication event.cause- Exception that prevented principal resolution.
-