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