Class ResponseExceptionHandler
- java.lang.Object
-
- org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
-
- com.github.chrisgleissner.springbatchrest.api.jobexecution.ResponseExceptionHandler
-
@ControllerAdvice public class ResponseExceptionHandler extends org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
ResponseExceptionHandler.ApiError
-
Constructor Summary
Constructors Constructor Description ResponseExceptionHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.springframework.http.ResponseEntity<Object>
handleAnyException(Exception e, org.springframework.web.context.request.WebRequest request)
protected org.springframework.http.ResponseEntity<Object>
handleBatchRuntimeException(javax.batch.operations.BatchRuntimeException e, org.springframework.web.context.request.WebRequest request)
protected org.springframework.http.ResponseEntity<Object>
handleNoSuchJobExecutionException(javax.batch.operations.NoSuchJobExecutionException e, 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
-
-
-
-
Method Detail
-
handleAnyException
@ExceptionHandler(java.lang.Exception.class) protected org.springframework.http.ResponseEntity<Object> handleAnyException(Exception e, org.springframework.web.context.request.WebRequest request)
-
handleBatchRuntimeException
@ExceptionHandler(javax.batch.operations.BatchRuntimeException.class) protected org.springframework.http.ResponseEntity<Object> handleBatchRuntimeException(javax.batch.operations.BatchRuntimeException e, org.springframework.web.context.request.WebRequest request)
-
handleNoSuchJobExecutionException
@ExceptionHandler(javax.batch.operations.NoSuchJobExecutionException.class) protected org.springframework.http.ResponseEntity<Object> handleNoSuchJobExecutionException(javax.batch.operations.NoSuchJobExecutionException e, org.springframework.web.context.request.WebRequest request)
-
-