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
-
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
ConstructorsConstructorDescriptionGenericExceptionHandlers(ExceptionMessageDecorator exceptionMessageDecorator) -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleAccessDeniedException(Exception e, javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServletRequest request) voidhandleException(Exception e, javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServletRequest request) voidhandleIllegalStateException(Exception e, javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServletRequest request) voidhandleInvalidRequestException(Exception e, javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServletRequest request) voidhandleNotFoundException(Exception e, javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpServletRequest request) voidhandleRetrofitError(retrofit.RetrofitError 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
-
GenericExceptionHandlers
-
-
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
-