public class CloudFoundryAuthorizationException extends RuntimeException
Modifier and Type | Class and Description |
---|---|
static class |
CloudFoundryAuthorizationException.Reason
Reasons why the exception can be thrown.
|
Constructor and Description |
---|
CloudFoundryAuthorizationException(CloudFoundryAuthorizationException.Reason reason,
String message) |
CloudFoundryAuthorizationException(CloudFoundryAuthorizationException.Reason reason,
String message,
Throwable cause) |
Modifier and Type | Method and Description |
---|---|
CloudFoundryAuthorizationException.Reason |
getReason()
Return the reason why the authorization exception was thrown.
|
HttpStatus |
getStatusCode()
Return the status code that should be returned to the client.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public CloudFoundryAuthorizationException(CloudFoundryAuthorizationException.Reason reason, String message)
public CloudFoundryAuthorizationException(CloudFoundryAuthorizationException.Reason reason, String message, Throwable cause)
public HttpStatus getStatusCode()
public CloudFoundryAuthorizationException.Reason getReason()