Class RestExceptionHandler

java.lang.Object
biz.devstack.springframework.boot.exception.RestExceptionHandler

@RestControllerAdvice public class RestExceptionHandler extends Object
  • Constructor Details

    • RestExceptionHandler

      public RestExceptionHandler()
  • Method Details

    • makeResponseEntity

      public org.springframework.http.ResponseEntity<ErrorResponse> makeResponseEntity(RestException e)
    • handleRestException

      @ExceptionHandler(RestException.class) public org.springframework.http.ResponseEntity<ErrorResponse> handleRestException(RestException e)
    • handleException

      @ExceptionHandler(java.lang.Exception.class) public org.springframework.http.ResponseEntity<ErrorResponse> handleException(Exception e)
    • handleMethodArgumentNotValid

      @ExceptionHandler(org.springframework.web.bind.MethodArgumentNotValidException.class) public org.springframework.http.ResponseEntity<ErrorResponse> handleMethodArgumentNotValid(org.springframework.web.bind.MethodArgumentNotValidException e)
    • handleConstraintViolationException

      @ExceptionHandler(jakarta.validation.ConstraintViolationException.class) public org.springframework.http.ResponseEntity<ErrorResponse> handleConstraintViolationException(jakarta.validation.ConstraintViolationException e)
    • handleMethodArgumentTypeMismatchException

      @ExceptionHandler(org.springframework.web.method.annotation.MethodArgumentTypeMismatchException.class) public org.springframework.http.ResponseEntity<ErrorResponse> handleMethodArgumentTypeMismatchException(org.springframework.web.method.annotation.MethodArgumentTypeMismatchException e)
    • handleHttpMessageNotReadableException

      @ExceptionHandler(org.springframework.http.converter.HttpMessageNotReadableException.class) public org.springframework.http.ResponseEntity<ErrorResponse> handleHttpMessageNotReadableException(org.springframework.http.converter.HttpMessageNotReadableException e)
    • handleDuplicateKeyException

      @ExceptionHandler(org.springframework.dao.DuplicateKeyException.class) public org.springframework.http.ResponseEntity<ErrorResponse> handleDuplicateKeyException(org.springframework.dao.DuplicateKeyException e)