Class ClientRegistrationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.pingidentity.sdk.oauth20.registration.ClientRegistrationException
- All Implemented Interfaces:
Serializable
An exception used to handle invalid OAuth 2.0 Dynamic Client Registration data.
- Since:
- 9.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumError codes for Dynamic Client Registration. -
Constructor Summary
ConstructorsConstructorDescriptionClientRegistrationException(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
Modifier and TypeMethodDescriptiongetError()Returns the Dynamic Client Registration protocolClientRegistrationException.ErrorCodewrapped by this exception.javax.ws.rs.core.Response.StatusReturns the HTTP response status code wrapped by this exception.voidSet 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 Details
-
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 Details
-
getError
Returns the Dynamic Client Registration protocolClientRegistrationException.ErrorCodewrapped by this exception.- Returns:
- The
ClientRegistrationException.ErrorCodewrapped by this exception.
-
setError
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.
-