public abstract class ServiceBrokerExceptionHandler extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String |
UNPROCESSABLE_REQUEST |
| Constructor and Description |
|---|
ServiceBrokerExceptionHandler() |
protected static final String UNPROCESSABLE_REQUEST
protected abstract org.slf4j.Logger getLog()
@ExceptionHandler(value=ServiceBrokerApiVersionException.class) @ResponseStatus(value=PRECONDITION_FAILED) public ErrorMessage handleException(ServiceBrokerApiVersionException ex)
ServiceBrokerApiVersionExceptionex - the exception@ExceptionHandler(value=ServiceBrokerApiVersionMissingException.class) @ResponseStatus(value=BAD_REQUEST) public ErrorMessage handleException(ServiceBrokerApiVersionMissingException ex)
ex - the exception@ExceptionHandler(value=ServiceInstanceDoesNotExistException.class) @ResponseStatus(value=UNPROCESSABLE_ENTITY) public ErrorMessage handleException(ServiceInstanceDoesNotExistException ex)
ServiceInstanceDoesNotExistExceptionex - the exception@ExceptionHandler(value=ServiceDefinitionDoesNotExistException.class) @ResponseStatus(value=BAD_REQUEST) public ErrorMessage handleException(ServiceDefinitionDoesNotExistException ex)
ex - the exception@ExceptionHandler(value=ServiceDefinitionPlanDoesNotExistException.class) @ResponseStatus(value=BAD_REQUEST) public ErrorMessage handleException(ServiceDefinitionPlanDoesNotExistException ex)
ex - the exception@ExceptionHandler(value=ServiceBrokerAsyncRequiredException.class) @ResponseStatus(value=UNPROCESSABLE_ENTITY) public ErrorMessage handleException(ServiceBrokerAsyncRequiredException ex)
ServiceBrokerAsyncRequiredExceptionex - the exception@ExceptionHandler(value=ServiceBrokerMaintenanceInfoConflictException.class) @ResponseStatus(value=UNPROCESSABLE_ENTITY) public ErrorMessage handleException(ServiceBrokerMaintenanceInfoConflictException ex)
ex - the exception@ExceptionHandler(value=ServiceBrokerInvalidParametersException.class) @ResponseStatus(value=BAD_REQUEST) public ErrorMessage handleException(ServiceBrokerInvalidParametersException ex)
ex - the exception@ExceptionHandler(value=ServiceBrokerOperationInProgressException.class) @ResponseStatus(value=NOT_FOUND) public ErrorMessage handleException(ServiceBrokerOperationInProgressException ex)
ex - the exception@ExceptionHandler(value=ServiceBrokerCreateOperationInProgressException.class) @ResponseStatus(value=ACCEPTED) public OperationInProgressMessage handleException(ServiceBrokerCreateOperationInProgressException ex)
ex - the exception@ExceptionHandler(value=ServiceBrokerUpdateOperationInProgressException.class) @ResponseStatus(value=ACCEPTED) public OperationInProgressMessage handleException(ServiceBrokerUpdateOperationInProgressException ex)
ex - the exception@ExceptionHandler(value=ServiceBrokerDeleteOperationInProgressException.class) @ResponseStatus(value=ACCEPTED) public OperationInProgressMessage handleException(ServiceBrokerDeleteOperationInProgressException ex)
ex - the exception@ExceptionHandler(value=ServiceBrokerUnavailableException.class) @ResponseStatus(value=SERVICE_UNAVAILABLE) public ErrorMessage handleException(ServiceBrokerUnavailableException ex)
ServiceBrokerUnavailableExceptionex - the exception@ExceptionHandler(value=ServiceBrokerConcurrencyException.class) @ResponseStatus(value=UNPROCESSABLE_ENTITY) public ErrorMessage handleException(ServiceBrokerConcurrencyException ex)
ServiceBrokerConcurrencyExceptionex - the exception@ExceptionHandler(value=ServiceBrokerException.class) @ResponseStatus(value=INTERNAL_SERVER_ERROR) public ErrorMessage handleException(ServiceBrokerException ex)
ServiceBrokerExceptionex - the exception@ExceptionHandler(value=ServiceBrokerInvalidOriginatingIdentityException.class) @ResponseStatus(value=UNPROCESSABLE_ENTITY) public ErrorMessage handleException(ServiceBrokerInvalidOriginatingIdentityException ex)
ex - the exception@ExceptionHandler(value=java.lang.Exception.class) @ResponseStatus(value=INTERNAL_SERVER_ERROR) public ErrorMessage handleException(Exception ex)
Exceptionex - the exception@ExceptionHandler(value=ServiceInstanceExistsException.class) @ResponseStatus(value=CONFLICT) public ErrorMessage handleException(ServiceInstanceExistsException ex)
ServiceInstanceExistsExceptionex - the exception@ExceptionHandler(value=ServiceInstanceUpdateNotSupportedException.class) @ResponseStatus(value=UNPROCESSABLE_ENTITY) public ErrorMessage handleException(ServiceInstanceUpdateNotSupportedException ex)
ex - the exception@ExceptionHandler(value=ServiceInstanceBindingExistsException.class) @ResponseStatus(value=CONFLICT) public ErrorMessage handleException(ServiceInstanceBindingExistsException ex)
ex - the exception@ExceptionHandler(value=ServiceInstanceBindingDoesNotExistException.class) @ResponseStatus(value=UNPROCESSABLE_ENTITY) public ErrorMessage handleException(ServiceInstanceBindingDoesNotExistException ex)
ex - the exception@ExceptionHandler(value=ServiceBrokerBindingRequiresAppException.class) @ResponseStatus(value=UNPROCESSABLE_ENTITY) public ErrorMessage handleException(ServiceBrokerBindingRequiresAppException ex)
ex - the exceptionprotected ErrorMessage getErrorResponse(ServiceBrokerException ex)
ex - the exceptionprotected OperationInProgressMessage getOperationInProgressMessage(ServiceBrokerOperationInProgressException ex)
ex - the exceptionprotected ErrorMessage getErrorResponse(Exception ex)
ex - the exceptionprotected ErrorMessage getErrorResponse(String message)
message - the text of the messageprotected ErrorMessage handleBindingException(Exception ex, BindingResult result)
ex - the exceptionresult - the binding result