Package org.molgenis.web.exception
Class SpringExceptionHandler
- java.lang.Object
-
- org.molgenis.web.exception.SpringExceptionHandler
-
@ControllerAdvice @Order(0) public class SpringExceptionHandler extends Object
-
-
Constructor Summary
Constructors Constructor Description SpringExceptionHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjecthandleMaxUploadSizeExceededException(Exception ex, javax.servlet.http.HttpServletRequest httpServletRequest)ObjecthandleSpringException(Exception ex, org.springframework.web.method.HandlerMethod handlerMethod)ObjecthandleSpringExceptionNotFound(Exception ex, javax.servlet.http.HttpServletRequest httpServletRequest)
-
-
-
Method Detail
-
handleSpringExceptionNotFound
@ExceptionHandler(org.springframework.web.servlet.NoHandlerFoundException.class) public final Object handleSpringExceptionNotFound(Exception ex, javax.servlet.http.HttpServletRequest httpServletRequest)
-
handleMaxUploadSizeExceededException
@ExceptionHandler(org.springframework.web.multipart.MaxUploadSizeExceededException.class) public final Object handleMaxUploadSizeExceededException(Exception ex, javax.servlet.http.HttpServletRequest httpServletRequest)
-
handleSpringException
@ExceptionHandler({org.springframework.web.HttpRequestMethodNotSupportedException.class,org.springframework.web.HttpMediaTypeNotSupportedException.class,org.springframework.web.HttpMediaTypeNotAcceptableException.class,org.springframework.web.bind.MissingPathVariableException.class,org.springframework.web.bind.MissingServletRequestParameterException.class,org.springframework.web.bind.ServletRequestBindingException.class,org.springframework.beans.ConversionNotSupportedException.class,org.springframework.beans.TypeMismatchException.class,org.springframework.http.converter.HttpMessageNotReadableException.class,org.springframework.http.converter.HttpMessageNotWritableException.class,org.springframework.web.bind.MethodArgumentNotValidException.class,org.springframework.web.multipart.support.MissingServletRequestPartException.class,org.springframework.validation.BindException.class,org.springframework.web.context.request.async.AsyncRequestTimeoutException.class,javax.validation.ConstraintViolationException.class}) public final Object handleSpringException(Exception ex, org.springframework.web.method.HandlerMethod handlerMethod)
-
-