|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception com.nimbusds.oauth2.sdk.GeneralException
public class GeneralException
The base class for exceptions defined in this SDK.
Constructor Summary | |
---|---|
GeneralException(String message)
Creates a new general exception. |
|
GeneralException(String message,
ErrorObject error,
Throwable cause)
Creates a new general exception. |
|
GeneralException(String message,
ErrorObject error,
URL redirectURI,
State state,
Throwable cause)
Creates a new general exception. |
|
GeneralException(String message,
Throwable cause)
Creates a new general exception. |
Method Summary | |
---|---|
ErrorObject |
getErrorObject()
Gets the associated error. |
URL |
getRedirectURI()
Gets the associated redirection URI. |
State |
getState()
Gets the optional associated state parameter. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GeneralException(String message)
message
- The exception message. May be null
.public GeneralException(String message, Throwable cause)
message
- The exception message. May be null
.cause
- The exception cause, null
if not specified.public GeneralException(String message, ErrorObject error, Throwable cause)
message
- The exception message. May be null
.error
- The associated error, null
if not specified.cause
- The exception cause, null
if not specified.public GeneralException(String message, ErrorObject error, URL redirectURI, State state, Throwable cause)
message
- The exception message. May be null
.error
- The associated error, null
if not
specified.redirectURI
- The associated redirection URI, null
if
not specified.state
- The optional associated state parameter,
null
if not specified.cause
- The exception cause, null
if not
specified.Method Detail |
---|
public ErrorObject getErrorObject()
null
if not specified.public URL getRedirectURI()
Important: Must be verified with the client registry before acting upon it!
null
if redirection is not to
be performed for this error.public State getState()
null
if not specified
or redirection is not to be performed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |