public class ServiceBrokerException extends RuntimeException
Throwing this exception will result in an HTTP status code 500 INTERNAL SERVER ERROR being returned to the platform.
| Constructor and Description |
|---|
ServiceBrokerException(String message)
Construct an exception with the provided message.
|
ServiceBrokerException(String errorCode,
String message)
Construct an exception with the provided error code and message.
|
ServiceBrokerException(String errorCode,
String message,
Throwable cause)
Construct an exception with the provided error code, message and cause.
|
ServiceBrokerException(String message,
Throwable cause)
Construct an exception with the provided message and cause.
|
ServiceBrokerException(Throwable cause)
Construct an exception without a message and with the provided cause.
|
| Modifier and Type | Method and Description |
|---|---|
ErrorMessage |
getErrorMessage() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ServiceBrokerException(String message)
message - the exception messagepublic ServiceBrokerException(String errorCode, String message)
errorCode - a single word in camel case that uniquely identifies the error conditionmessage - the exception messagepublic ServiceBrokerException(String message, Throwable cause)
message - the exception messagecause - the cause of the exceptionpublic ServiceBrokerException(String errorCode, String message, Throwable cause)
errorCode - a single word in camel case that uniquely identifies the error conditionmessage - the exception messagecause - the cause of the exceptionpublic ServiceBrokerException(Throwable cause)
cause - the cause of the exceptionpublic ErrorMessage getErrorMessage()