Class RestExceptionHandler
java.lang.Object
biz.devstack.springframework.boot.exception.RestExceptionHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<ErrorResponse>handleConstraintViolationException(jakarta.validation.ConstraintViolationException e) org.springframework.http.ResponseEntity<ErrorResponse>handleDuplicateKeyException(org.springframework.dao.DuplicateKeyException e) org.springframework.http.ResponseEntity<ErrorResponse>org.springframework.http.ResponseEntity<ErrorResponse>handleHttpMessageNotReadableException(org.springframework.http.converter.HttpMessageNotReadableException e) org.springframework.http.ResponseEntity<ErrorResponse>handleMethodArgumentNotValid(org.springframework.web.bind.MethodArgumentNotValidException e) org.springframework.http.ResponseEntity<ErrorResponse>handleMethodArgumentTypeMismatchException(org.springframework.web.method.annotation.MethodArgumentTypeMismatchException e) org.springframework.http.ResponseEntity<ErrorResponse>org.springframework.http.ResponseEntity<ErrorResponse>
-
Constructor Details
-
RestExceptionHandler
public RestExceptionHandler()
-
-
Method Details
-
makeResponseEntity
-
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)
-