Class GenericExceptionHandlers

java.lang.Object
org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
com.netflix.spinnaker.kork.web.exceptions.BaseExceptionHandlers
com.netflix.spinnaker.kork.web.exceptions.GenericExceptionHandlers

@ControllerAdvice public class GenericExceptionHandlers extends BaseExceptionHandlers
  • 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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    handleAccessDeniedException(Exception e, javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServletRequest request)
     
    void
    handleException(Exception e, javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServletRequest request)
     
    void
    handleIllegalStateException(Exception e, javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServletRequest request)
     
    void
    handleInvalidRequestException(Exception e, javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServletRequest request)
     
    void
    handleNotFoundException(Exception e, javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServletRequest request)
     
    void
    handleRetrofitError(retrofit.RetrofitError 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

  • Method Details

    • handleAccessDeniedException

      @ExceptionHandler(org.springframework.security.access.AccessDeniedException.class) public void handleAccessDeniedException(Exception e, javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServletRequest request) throws IOException
      Throws:
      IOException
    • handleNotFoundException

      @ExceptionHandler(com.netflix.spinnaker.kork.web.exceptions.NotFoundException.class) public void handleNotFoundException(Exception e, javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServletRequest request) throws IOException
      Throws:
      IOException
    • handleInvalidRequestException

      @ExceptionHandler({com.netflix.spinnaker.kork.web.exceptions.InvalidRequestException.class,com.netflix.spinnaker.kork.exceptions.UserException.class,java.lang.IllegalArgumentException.class}) public void handleInvalidRequestException(Exception e, javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServletRequest request) throws IOException
      Throws:
      IOException
    • handleIllegalStateException

      @ExceptionHandler(java.lang.IllegalStateException.class) public void handleIllegalStateException(Exception e, javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServletRequest request) throws IOException
      Throws:
      IOException
    • handleRetrofitError

      @ExceptionHandler(retrofit.RetrofitError.class) public void handleRetrofitError(retrofit.RetrofitError e, javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServletRequest request) throws IOException
      Throws:
      IOException
    • handleException

      @ExceptionHandler(java.lang.Exception.class) public void handleException(Exception e, javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServletRequest request) throws IOException
      Throws:
      IOException