Class SpinnakerRetrofitExceptionHandlers
java.lang.Object
org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
com.netflix.spinnaker.kork.web.exceptions.BaseExceptionHandlers
com.netflix.spinnaker.kork.retrofit.exceptions.SpinnakerRetrofitExceptionHandlers
@ControllerAdvice
@Order(2147483646)
public class SpinnakerRetrofitExceptionHandlers
extends com.netflix.spinnaker.kork.web.exceptions.BaseExceptionHandlers
Give this controller advice precedence over GenericExceptionHandlers in kork-web. An alternative
is to teach GenericExceptionHandlers to handle e.g. SpinnakerServerException, but that creates a
circular dependency. kork-retrofit already depends on kork-web, and for GenericExceptionHandlers
to handle SpinnakerServerException, kork-web would need to depend on kork-retrofit.
-
Field Summary
Fields inherited from class com.netflix.spinnaker.kork.web.exceptions.BaseExceptionHandlers
exceptionMessageDecoratorFields inherited from class org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
PAGE_NOT_FOUND_LOG_CATEGORY, pageNotFoundLogger -
Constructor Summary
ConstructorsConstructorDescriptionSpinnakerRetrofitExceptionHandlers(com.netflix.spinnaker.kork.web.exceptions.ExceptionMessageDecorator exceptionMessageDecorator) -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleSpinnakerHttpException(SpinnakerHttpException e, javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServletRequest request) voidhandleSpinnakerServerException(SpinnakerServerException e, javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServletRequest request) Methods inherited from class com.netflix.spinnaker.kork.web.exceptions.BaseExceptionHandlers
storeExceptionMethods inherited from class org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
handleAsyncRequestTimeoutException, handleBindException, handleConversionNotSupported, handleException, handleExceptionInternal, handleHttpMediaTypeNotAcceptable, handleHttpMediaTypeNotSupported, handleHttpMessageNotReadable, handleHttpMessageNotWritable, handleHttpRequestMethodNotSupported, handleMethodArgumentNotValid, handleMissingPathVariable, handleMissingServletRequestParameter, handleMissingServletRequestPart, handleNoHandlerFoundException, handleServletRequestBindingException, handleTypeMismatch
-
Constructor Details
-
SpinnakerRetrofitExceptionHandlers
public SpinnakerRetrofitExceptionHandlers(com.netflix.spinnaker.kork.web.exceptions.ExceptionMessageDecorator exceptionMessageDecorator)
-
-
Method Details
-
handleSpinnakerServerException
@ExceptionHandler(SpinnakerServerException.class) public void handleSpinnakerServerException(SpinnakerServerException e, javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServletRequest request) throws IOException - Throws:
IOException
-
handleSpinnakerHttpException
@ExceptionHandler(SpinnakerHttpException.class) public void handleSpinnakerHttpException(SpinnakerHttpException e, javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServletRequest request) throws IOException - Throws:
IOException
-