Class AccessDeniedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.forgerock.oauth2.core.exceptions.OAuth2Exception
-
- org.forgerock.oauth2.core.exceptions.AccessDeniedException
-
- All Implemented Interfaces:
Serializable
public class AccessDeniedException extends OAuth2Exception
Thrown when the resource owner authentication fails.- Since:
- 12.0.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AccessDeniedException(String message)Constructs a new AccessDeniedException with specified message.AccessDeniedException(String message, OAuth2Constants.UrlLocation parameterLocation)Constructs a new AccessDeniedException with specified message.AccessDeniedException(Throwable cause)Constructs a new AccessDeniedException with message from the specified cause.
-
Method Summary
-
Methods inherited from class org.forgerock.oauth2.core.exceptions.OAuth2Exception
getError, getParameterLocation, getStatusCode
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
AccessDeniedException
public AccessDeniedException(String message)
Constructs a new AccessDeniedException with specified message. TheOAuth2Constants.UrlLocationfor the parameters are defaulted to QUERY.- Parameters:
message- The reason for the exception.
-
AccessDeniedException
public AccessDeniedException(Throwable cause)
Constructs a new AccessDeniedException with message from the specified cause.- Parameters:
cause- The cause of the exception.
-
AccessDeniedException
public AccessDeniedException(String message, OAuth2Constants.UrlLocation parameterLocation)
Constructs a new AccessDeniedException with specified message.- Parameters:
message- The reason for the exception.
-
-