Class ServiceBrokerInvalidParametersException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.cloud.servicebroker.exception.ServiceBrokerException
org.springframework.cloud.servicebroker.exception.ServiceBrokerInvalidParametersException
- All Implemented Interfaces:
Serializable
Thrown to indicate that parameters passed in a create or update request are not
understood by the service broker.
Throwing this exception will result in an HTTP status code 400 BAD REQUEST being returned to the platform.
- Author:
- Scott Frederick, Roy Clarkson
- See Also:
-
Constructor Summary
ConstructorDescriptionConstruct an exception with the provided message.ServiceBrokerInvalidParametersException
(String errorCode, String message) Construct an exception with the provided error code and message.ServiceBrokerInvalidParametersException
(String errorCode, String message, Boolean instanceUsable, Boolean updateRepeatable) Construct an exception with the provided error code, message and cause.ServiceBrokerInvalidParametersException
(String errorCode, String message, Boolean instanceUsable, Boolean updateRepeatable, Throwable cause) Construct an exception with the provided error code, message and cause.ServiceBrokerInvalidParametersException
(String errorCode, String message, Throwable cause) Construct an exception with the provided error code, message and cause.ServiceBrokerInvalidParametersException
(String message, Throwable cause) Construct an exception with the provided message and cause.Construct an exception with a default message and the provided cause. -
Method Summary
Methods inherited from class org.springframework.cloud.servicebroker.exception.ServiceBrokerException
getErrorMessage
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ServiceBrokerInvalidParametersException
Construct an exception with the provided message.- Parameters:
message
- the exception message
-
ServiceBrokerInvalidParametersException
Construct an exception with the provided error code and message.- Parameters:
errorCode
- a single word in camel case that uniquely identifies the error conditionmessage
- the exception message
-
ServiceBrokerInvalidParametersException
Construct an exception with the provided message and cause.- Parameters:
message
- the exception messagecause
- the cause of the exception
-
ServiceBrokerInvalidParametersException
Construct an exception with the provided error code, message and cause.- Parameters:
errorCode
- a single word in camel case that uniquely identifies the error conditionmessage
- the exception messagecause
- the cause of the exception
-
ServiceBrokerInvalidParametersException
public ServiceBrokerInvalidParametersException(String errorCode, String message, Boolean instanceUsable, Boolean updateRepeatable) Construct an exception with the provided error code, message and cause.- Parameters:
errorCode
- a single word in camel case that uniquely identifies the error conditionmessage
- the exception messageinstanceUsable
- if an update or deprovisioning operation failed, this flag indicates whether or not the Service Instance is still usable. If true, the Service Instance can still be used, false otherwise. This field MUST NOT be present for errors of other operations.updateRepeatable
- if an update operation failed, this flag indicates whether this update can be repeated or not. If true, the same update operation MAY be repeated and MAY succeed; if false, repeating the same update operation will fail again. This field MUST NOT be present for errors of other operations.
-
ServiceBrokerInvalidParametersException
public ServiceBrokerInvalidParametersException(String errorCode, String message, Boolean instanceUsable, Boolean updateRepeatable, Throwable cause) Construct an exception with the provided error code, message and cause.- Parameters:
errorCode
- a single word in camel case that uniquely identifies the error conditionmessage
- the exception messageinstanceUsable
- if an update or deprovisioning operation failed, this flag indicates whether or not the Service Instance is still usable. If true, the Service Instance can still be used, false otherwise. This field MUST NOT be present for errors of other operations.updateRepeatable
- if an update operation failed, this flag indicates whether this update can be repeated or not. If true, the same update operation MAY be repeated and MAY succeed; if false, repeating the same update operation will fail again. This field MUST NOT be present for errors of other operations.cause
- the cause of the exception
-
ServiceBrokerInvalidParametersException
Construct an exception with a default message and the provided cause.- Parameters:
cause
- the cause of the exception
-