Class ClientRegistrationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.pingidentity.sdk.oauth20.registration.ClientRegistrationException
-
- All Implemented Interfaces:
Serializable
public class ClientRegistrationException extends Exception
An exception used to handle invalid OAuth 2.0 Dynamic Client Registration data.- Since:
- 9.0
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classClientRegistrationException.ErrorCodeError codes for Dynamic Client Registration.
-
Constructor Summary
Constructors Constructor Description ClientRegistrationException(javax.ws.rs.core.Response.Status status, ClientRegistrationException.ErrorCode error, String description)Create a new exception based on a HTTP response status code, error and description.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClientRegistrationException.ErrorCodegetError()Returns the Dynamic Client Registration protocolClientRegistrationException.ErrorCodewrapped by this exception.javax.ws.rs.core.Response.StatusgetStatus()Returns the HTTP response status code wrapped by this exception.voidsetError(ClientRegistrationException.ErrorCode error)Set the Dynamic Client Registration protocolClientRegistrationException.ErrorCodewrapped by this exception.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ClientRegistrationException
public ClientRegistrationException(javax.ws.rs.core.Response.Status status, ClientRegistrationException.ErrorCode error, String description)Create a new exception based on a HTTP response status code, error and description.- Parameters:
status- HTTP response status code for the response.error- Error code for the Dynamic Client Registration protocol response.description- Error description to include in the Dynamic Client Registration protocol response.
-
-
Method Detail
-
getError
public ClientRegistrationException.ErrorCode getError()
Returns the Dynamic Client Registration protocolClientRegistrationException.ErrorCodewrapped by this exception.- Returns:
- The
ClientRegistrationException.ErrorCodewrapped by this exception.
-
setError
public void setError(ClientRegistrationException.ErrorCode error)
Set the Dynamic Client Registration protocolClientRegistrationException.ErrorCodewrapped by this exception.- Parameters:
error- TheClientRegistrationException.ErrorCodewrapped by this exception.
-
getStatus
public javax.ws.rs.core.Response.Status getStatus()
Returns the HTTP response status code wrapped by this exception.- Returns:
- The HTTP response status code wrapped by this exception.
-
-