Package org.optaweb.employeerostering
Class OptaWebExceptionHandler
- java.lang.Object
-
- org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
-
- org.optaweb.employeerostering.OptaWebExceptionHandler
-
@ControllerAdvice public class OptaWebExceptionHandler extends org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
-
-
Constructor Summary
Constructors Constructor Description OptaWebExceptionHandler(ExceptionDataMapper exceptionDataMapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.springframework.http.ResponseEntity<ServerSideExceptionInfo>handleException(Throwable t, org.springframework.web.context.request.WebRequest request)-
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
-
-
-
-
Constructor Detail
-
OptaWebExceptionHandler
public OptaWebExceptionHandler(ExceptionDataMapper exceptionDataMapper)
-
-
Method Detail
-
handleException
@ExceptionHandler({java.lang.Exception.class,java.lang.RuntimeException.class}) protected org.springframework.http.ResponseEntity<ServerSideExceptionInfo> handleException(Throwable t, org.springframework.web.context.request.WebRequest request)
-
-