public abstract class OAuth2Exception extends Exception
Constructor and Description |
---|
OAuth2Exception(int statusCode,
String error,
String description)
Constructs a new OAuth2Exception with specified status code, error and description.
|
OAuth2Exception(int statusCode,
String error,
String description,
OAuth2Constants.UrlLocation parameterLocation)
Constructs a new OAuth2Exception with specified status code, error and description.
|
Modifier and Type | Method and Description |
---|---|
String |
getError()
Gets the error/name of the exception.
|
OAuth2Constants.UrlLocation |
getParameterLocation()
Gets the location of the parameters in the URL.
|
int |
getStatusCode()
Gets the status code of the exception.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public OAuth2Exception(int statusCode, String error, String description)
OAuth2Constants.UrlLocation
for the parameters are defaulted to QUERY.statusCode
- The status code of the exception. Maps to HTTP status codes.error
- The error/name of the exception.description
- The reason and description for the exception.public OAuth2Exception(int statusCode, String error, String description, OAuth2Constants.UrlLocation parameterLocation)
statusCode
- The status code of the exception. Maps to HTTP status codes.error
- The error/name of the exception.description
- The reason and description for the exception.parameterLocation
- Indicates the location of the parameters in the URL.public int getStatusCode()
public String getError()
public OAuth2Constants.UrlLocation getParameterLocation()
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.