Class ServiceInstanceUpdateNotSupportedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.cloud.servicebroker.exception.ServiceBrokerException
org.springframework.cloud.servicebroker.exception.ServiceInstanceUpdateNotSupportedException
- All Implemented Interfaces:
Serializable
Thrown to indicate that a request to update a service instance can not be fulfilled by
the service broker.
Throwing this exception will result in an HTTP status code 422 UNPROCESSABLE ENTITY being returned to the platform.
- Author:
- Roy Clarkson
- See Also:
-
Constructor Summary
ConstructorDescriptionConstruct an exception with a default message and the provided detail.ServiceInstanceUpdateNotSupportedException
(String errorCode, String message) Construct an exception with an error code, default message and the provided detail.ServiceInstanceUpdateNotSupportedException
(String errorCode, String message, Boolean instanceUsable, Boolean updateRepeatable) Construct an exception with a default message and the provided detail and a cause.ServiceInstanceUpdateNotSupportedException
(String errorCode, String message, Boolean instanceUsable, Boolean updateRepeatable, Throwable cause) Construct an exception with a default message and the provided detail and a cause.ServiceInstanceUpdateNotSupportedException
(String errorCode, String message, Throwable cause) Construct an exception with a default message and the provided detail and a cause.ServiceInstanceUpdateNotSupportedException
(String message, Throwable cause) Construct an exception with a default message and the provided detail and a 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
-
ServiceInstanceUpdateNotSupportedException
Construct an exception with a default message and the provided detail.- Parameters:
message
- detail to add to the default message
-
ServiceInstanceUpdateNotSupportedException
Construct an exception with an error code, default message and the provided detail.- Parameters:
errorCode
- a single word in camel case that uniquely identifies the error conditionmessage
- detail to add to the default message
-
ServiceInstanceUpdateNotSupportedException
Construct an exception with a default message and the provided detail and a cause.- Parameters:
message
- detail to add to the default messagecause
- the cause of the exception
-
ServiceInstanceUpdateNotSupportedException
public ServiceInstanceUpdateNotSupportedException(String errorCode, String message, Throwable cause) Construct an exception with a default message and the provided detail and a cause.- Parameters:
errorCode
- a single word in camel case that uniquely identifies the error conditionmessage
- detail to add to the default messagecause
- the cause of the exception
-
ServiceInstanceUpdateNotSupportedException
public ServiceInstanceUpdateNotSupportedException(String errorCode, String message, Boolean instanceUsable, Boolean updateRepeatable) Construct an exception with a default message and the provided detail and a cause.- Parameters:
errorCode
- a single word in camel case that uniquely identifies the error conditionmessage
- detail to add to the default 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.
-
ServiceInstanceUpdateNotSupportedException
public ServiceInstanceUpdateNotSupportedException(String errorCode, String message, Boolean instanceUsable, Boolean updateRepeatable, Throwable cause) Construct an exception with a default message and the provided detail and a cause.- Parameters:
errorCode
- a single word in camel case that uniquely identifies the error conditionmessage
- detail to add to the default 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
-
ServiceInstanceUpdateNotSupportedException
Construct an exception with a default message and the provided cause.- Parameters:
cause
- the cause of the exception
-