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

    exceptionMessageDecorator

    Fields inherited from class org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler

    PAGE_NOT_FOUND_LOG_CATEGORY, pageNotFoundLogger
  • Constructor Summary

    Constructors
    Constructor
    Description
    SpinnakerRetrofitExceptionHandlers(com.netflix.spinnaker.kork.web.exceptions.ExceptionMessageDecorator exceptionMessageDecorator)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    handleSpinnakerHttpException(SpinnakerHttpException e, javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServletRequest request)
     
    void
    handleSpinnakerServerException(SpinnakerServerException e, javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServletRequest request)
     

    Methods inherited from class com.netflix.spinnaker.kork.web.exceptions.BaseExceptionHandlers

    storeException

    Methods 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SpinnakerRetrofitExceptionHandlers

      public SpinnakerRetrofitExceptionHandlers(com.netflix.spinnaker.kork.web.exceptions.ExceptionMessageDecorator exceptionMessageDecorator)
  • Method Details