@ControllerAdvice
public class BaseRestExceptionHandlers
extends org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
ExceptionHandlers for Crafter REST services.| Constructor and Description |
|---|
BaseRestExceptionHandlers() |
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.http.ResponseEntity<Object> |
handleExceptionInternal(Exception ex,
Object body,
org.springframework.http.HttpHeaders headers,
org.springframework.http.HttpStatus status,
org.springframework.web.context.request.WebRequest request) |
protected org.springframework.http.ResponseEntity<Object> |
handleExceptionInternal(Exception ex,
String message,
org.springframework.http.HttpHeaders headers,
org.springframework.http.HttpStatus status,
org.springframework.web.context.request.WebRequest request) |
org.springframework.http.ResponseEntity<Object> |
handleGeneralException(Exception ex,
org.springframework.web.context.request.WebRequest webRequest) |
handleAsyncRequestTimeoutException, handleBindException, handleConversionNotSupported, handleException, handleHttpMediaTypeNotAcceptable, handleHttpMediaTypeNotSupported, handleHttpMessageNotReadable, handleHttpMessageNotWritable, handleHttpRequestMethodNotSupported, handleMethodArgumentNotValid, handleMissingPathVariable, handleMissingServletRequestParameter, handleMissingServletRequestPart, handleNoHandlerFoundException, handleNoSuchRequestHandlingMethod, handleServletRequestBindingException, handleTypeMismatch@ExceptionHandler(value=java.lang.Exception.class) public org.springframework.http.ResponseEntity<Object> handleGeneralException(Exception ex, org.springframework.web.context.request.WebRequest webRequest)
protected org.springframework.http.ResponseEntity<Object> handleExceptionInternal(Exception ex, String message, org.springframework.http.HttpHeaders headers, org.springframework.http.HttpStatus status, org.springframework.web.context.request.WebRequest request)
protected org.springframework.http.ResponseEntity<Object> handleExceptionInternal(Exception ex, Object body, org.springframework.http.HttpHeaders headers, org.springframework.http.HttpStatus status, org.springframework.web.context.request.WebRequest request)
handleExceptionInternal in class org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandlerCopyright © 2018 CrafterCMS. All rights reserved.