public class AuthorizationException extends ServerResponseException
getReason()
to find out more.Modifier and Type | Class and Description |
---|---|
static class |
AuthorizationException.Reason
Possible causes of an
AuthorizationException . |
Constructor and Description |
---|
AuthorizationException(AuthorizationException.Reason reason)
Creates a new instance with the given reason.
|
AuthorizationException(AuthorizationException.Reason reason,
String message)
Creates a new instance with the given reason and message.
|
Modifier and Type | Method and Description |
---|---|
AuthorizationException.Reason |
getReason()
Returns the detailed reason for this exception.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public AuthorizationException(AuthorizationException.Reason reason)
reason
- reason for the exceptionpublic AuthorizationException(AuthorizationException.Reason reason, String message)
reason
- reason for the exceptionmessage
- custom exception message, use this to express details not
covered by the reason alonepublic AuthorizationException.Reason getReason()
Copyright © 2014. All rights reserved.