Package de.cxp.ocs.controller
Class IndexationExceptionHandler
java.lang.Object
org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
de.cxp.ocs.controller.IndexationExceptionHandler
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.context.MessageSourceAware
@ControllerAdvice
public class IndexationExceptionHandler
extends org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
-
Field Summary
Fields inherited from class org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
logger, PAGE_NOT_FOUND_LOG_CATEGORY, pageNotFoundLogger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity
<String> handleElasticsearchStatusExceptions
(org.elasticsearch.ElasticsearchStatusException e) org.springframework.http.ResponseEntity
<String> org.springframework.http.ResponseEntity
<String> org.springframework.http.ResponseEntity
<String> Methods inherited from class org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
createProblemDetail, createResponseEntity, getMessageSource, handleAsyncRequestNotUsableException, handleAsyncRequestTimeoutException, handleConversionNotSupported, handleErrorResponseException, handleException, handleExceptionInternal, handleHandlerMethodValidationException, handleHttpMediaTypeNotAcceptable, handleHttpMediaTypeNotSupported, handleHttpMessageNotReadable, handleHttpMessageNotWritable, handleHttpRequestMethodNotSupported, handleMaxUploadSizeExceededException, handleMethodArgumentNotValid, handleMethodValidationException, handleMissingPathVariable, handleMissingServletRequestParameter, handleMissingServletRequestPart, handleNoHandlerFoundException, handleNoResourceFoundException, handleServletRequestBindingException, handleTypeMismatch, setMessageSource
-
Constructor Details
-
IndexationExceptionHandler
public IndexationExceptionHandler()
-
-
Method Details
-
handleInternalErrors
@ExceptionHandler({java.util.concurrent.ExecutionException.class,java.lang.RuntimeException.class,java.lang.ClassNotFoundException.class}) public org.springframework.http.ResponseEntity<String> handleInternalErrors(Exception e) -
handleIOException
@ExceptionHandler({java.io.IOException.class,java.io.UncheckedIOException.class}) public org.springframework.http.ResponseEntity<String> handleIOException(Exception e) -
handleIllegalArgumentException
@ExceptionHandler(java.lang.IllegalArgumentException.class) public org.springframework.http.ResponseEntity<String> handleIllegalArgumentException(IllegalArgumentException e) -
handleElasticsearchStatusExceptions
@ExceptionHandler(org.elasticsearch.ElasticsearchStatusException.class) public org.springframework.http.ResponseEntity<String> handleElasticsearchStatusExceptions(org.elasticsearch.ElasticsearchStatusException e)
-