Class ServiceBrokerWebFluxExceptionHandler
java.lang.Object
org.springframework.cloud.servicebroker.controller.ServiceBrokerExceptionHandler
org.springframework.cloud.servicebroker.controller.ServiceBrokerWebFluxExceptionHandler
@ControllerAdvice(annotations=ServiceBrokerRestController.class)
@ResponseBody
@Order(2147483637)
public class ServiceBrokerWebFluxExceptionHandler
extends ServiceBrokerExceptionHandler
Exception handling logic shared by WebFlux Controllers.
- Author:
- Scott Frederick, Roy Clarkson
-
Field Summary
Fields inherited from class org.springframework.cloud.servicebroker.controller.ServiceBrokerExceptionHandler
UNPROCESSABLE_REQUEST
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected org.slf4j.Logger
getLog()
Callback to implementing classes to obtain the configured Logger.Handle aWebExchangeBindException
.Handle aServerWebInputException
.Handle aUnsupportedMediaTypeStatusException
.Methods inherited from class org.springframework.cloud.servicebroker.controller.ServiceBrokerExceptionHandler
getErrorResponse, getErrorResponse, getErrorResponse, getOperationInProgressMessage, handleBindingException, handleException, handleException, handleException, handleException, handleException, handleException, handleException, handleException, handleException, handleException, handleException, handleException, handleException, handleException, handleException, handleException, handleException, handleException, handleException, handleException, handleException, handleException
-
Constructor Details
-
ServiceBrokerWebFluxExceptionHandler
public ServiceBrokerWebFluxExceptionHandler()
-
-
Method Details
-
getLog
protected org.slf4j.Logger getLog()Description copied from class:ServiceBrokerExceptionHandler
Callback to implementing classes to obtain the configured Logger.- Specified by:
getLog
in classServiceBrokerExceptionHandler
- Returns:
- the Logger
-
handleException
@ExceptionHandler(org.springframework.web.bind.support.WebExchangeBindException.class) @ResponseStatus(BAD_REQUEST) public ErrorMessage handleException(WebExchangeBindException ex) Handle aWebExchangeBindException
.- Parameters:
ex
- the exception- Returns:
- an error message
-
handleException
@ExceptionHandler(org.springframework.web.server.ServerWebInputException.class) @ResponseStatus(BAD_REQUEST) public ErrorMessage handleException(ServerWebInputException ex) Handle aServerWebInputException
.- Parameters:
ex
- the exception- Returns:
- an error message
-
handleException
@ExceptionHandler(org.springframework.web.server.UnsupportedMediaTypeStatusException.class) @ResponseStatus(BAD_REQUEST) public ErrorMessage handleException(UnsupportedMediaTypeStatusException ex) Handle aUnsupportedMediaTypeStatusException
.- Parameters:
ex
- the exception- Returns:
- an error message
-