public class OAuth2RestletException extends Exception
OAuth2Exception
.Constructor and Description |
---|
OAuth2RestletException(int statusCode,
String error,
String description,
String state)
Constructs a new OAuth2RestletException without a redirect uri.
|
OAuth2RestletException(int statusCode,
String error,
String description,
String redirectUri,
String state)
Constructs a new OAuth2RestletException with a redirect uri.
|
OAuth2RestletException(int statusCode,
String error,
String description,
String redirectUri,
String state,
OAuth2Constants.UrlLocation parameterLocation)
Constructs a new OAuth2RestletException with a redirect uri.
|
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
asMap()
Converts the exception into a map of its properties.
|
String |
getError()
Gets the error.
|
String |
getErrorDescription()
Gets the error description.
|
String |
getErrorUri()
Gets the error uri.
|
OAuth2Constants.UrlLocation |
getParameterLocation()
Gets the location of the parameters in the URL.
|
String |
getRedirectUri()
Gets the redirect uri.
|
String |
getState()
Gets the state that was on the request.
|
org.restlet.data.Status |
getStatus()
Gets the status code.
|
void |
setErrorUri(String errorUri)
Sets the error uri.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public OAuth2RestletException(int statusCode, String error, String description, String state)
statusCode
- The status code.error
- The error.description
- The description.state
- The state from the request.public OAuth2RestletException(int statusCode, String error, String description, String redirectUri, String state)
OAuth2Constants.UrlLocation
for the parameters are defaulted to QUERY.statusCode
- The status code.error
- The error.description
- The description.redirectUri
- The redirect uri from the request.state
- The state from the request.public OAuth2RestletException(int statusCode, String error, String description, String redirectUri, String state, OAuth2Constants.UrlLocation parameterLocation)
statusCode
- The status code.error
- The error.description
- The description.redirectUri
- The redirect uri from the request.state
- The state from the request.public String getError()
public String getErrorDescription()
public String getRedirectUri()
public String getState()
public void setErrorUri(String errorUri)
errorUri
- The error uri.public String getErrorUri()
public org.restlet.data.Status getStatus()
public OAuth2Constants.UrlLocation getParameterLocation()
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.