Package org.pac4j.oauth.exception
Class OAuthCredentialsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.pac4j.core.exception.TechnicalException
org.pac4j.core.exception.CredentialsException
org.pac4j.oauth.exception.OAuthCredentialsException
- All Implemented Interfaces:
Serializable
public class OAuthCredentialsException
extends org.pac4j.core.exception.CredentialsException
This class represents an exception occurring during OAuth credentials retrieval.
- Since:
- 1.3.0
- Author:
- Jerome Leleu
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionOAuthCredentialsException
(String message) Constructor for OAuthCredentialsException. -
Method Summary
Modifier and TypeMethodDescriptiongetError()
getError.getErrorDescription.Getter for the fielderrorMessages
.getErrorReason.getErrorUri.void
setErrorMessage
(String name, String message) setErrorMessage.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
ERROR
ConstantERROR="error"
- See Also:
-
ERROR_REASON
ConstantERROR_REASON="error_reason"
- See Also:
-
ERROR_DESCRIPTION
ConstantERROR_DESCRIPTION="error_description"
- See Also:
-
ERROR_NAMES
ConstantERROR_NAMES
-
-
Constructor Details
-
OAuthCredentialsException
Constructor for OAuthCredentialsException.
- Parameters:
message
- aString
object
-
-
Method Details
-
setErrorMessage
setErrorMessage.
-
getErrorMessages
Getter for the field
errorMessages
.- Returns:
- a
Map
object
-
getError
getError.
- Returns:
- a
String
object
-
getErrorReason
getErrorReason.
- Returns:
- a
String
object
-
getErrorDescription
getErrorDescription.
- Returns:
- a
String
object
-
getErrorUri
getErrorUri.
- Returns:
- a
String
object
-