Class ErrorController
java.lang.Object
org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
org.chenile.configuration.http.controller.ErrorController
- All Implemented Interfaces:
Aware, MessageSourceAware
-
Field Summary
Fields inherited from class ResponseEntityExceptionHandler
logger, PAGE_NOT_FOUND_LOG_CATEGORY, pageNotFoundLogger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ResponseEntity<Object> handleConflict(RuntimeException ex, WebRequest request) Methods inherited from class 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
-
ErrorController
public ErrorController()
-
-
Method Details
-
handleConflict
@ExceptionHandler({Exception.class,RuntimeException.class}) @ResponseStatus(INTERNAL_SERVER_ERROR) protected ResponseEntity<Object> handleConflict(RuntimeException ex, WebRequest request)
-