Package io.easywalk.simply.controllable
Class SimplyControllableAdvice
- java.lang.Object
-
- io.easywalk.simply.controllable.SimplyControllableAdvice
-
@RestControllerAdvice(annotations=SimplyControllableResponse.class) public class SimplyControllableAdvice extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description SimplyControllableAdvice()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<io.easywalk.simply.controllable.SimplyErrorResponse>handle(io.easywalk.simply.utils.GsonTools.JsonObjectExtensionConflictException e)org.springframework.http.ResponseEntity<io.easywalk.simply.controllable.SimplyErrorResponse>handle(java.lang.Exception e)org.springframework.http.ResponseEntity<io.easywalk.simply.controllable.SimplyErrorResponse>handle(java.util.NoSuchElementException e)org.springframework.http.ResponseEntity<io.easywalk.simply.controllable.SimplyErrorResponse>handle(javax.persistence.EntityExistsException e)org.springframework.http.ResponseEntity<io.easywalk.simply.controllable.SimplyErrorResponse>handle(javax.persistence.EntityNotFoundException e)org.springframework.http.ResponseEntity<io.easywalk.simply.controllable.SimplyErrorResponse>handle(org.springframework.dao.DataIntegrityViolationException e)org.springframework.http.ResponseEntity<io.easywalk.simply.controllable.SimplyErrorResponse>handle(org.springframework.web.bind.MethodArgumentNotValidException e)
-
-
-
Method Detail
-
handle
@ExceptionHandler(javax.persistence.EntityExistsException.class) public org.springframework.http.ResponseEntity<io.easywalk.simply.controllable.SimplyErrorResponse> handle(javax.persistence.EntityExistsException e)
-
handle
@ExceptionHandler(javax.persistence.EntityNotFoundException.class) public org.springframework.http.ResponseEntity<io.easywalk.simply.controllable.SimplyErrorResponse> handle(javax.persistence.EntityNotFoundException e)
-
handle
@ExceptionHandler(java.util.NoSuchElementException.class) public org.springframework.http.ResponseEntity<io.easywalk.simply.controllable.SimplyErrorResponse> handle(java.util.NoSuchElementException e)
-
handle
@ExceptionHandler(org.springframework.dao.DataIntegrityViolationException.class) public org.springframework.http.ResponseEntity<io.easywalk.simply.controllable.SimplyErrorResponse> handle(org.springframework.dao.DataIntegrityViolationException e)
-
handle
@ExceptionHandler(org.springframework.web.bind.MethodArgumentNotValidException.class) public org.springframework.http.ResponseEntity<io.easywalk.simply.controllable.SimplyErrorResponse> handle(org.springframework.web.bind.MethodArgumentNotValidException e)
-
handle
@ExceptionHandler(java.lang.Exception.class) public org.springframework.http.ResponseEntity<io.easywalk.simply.controllable.SimplyErrorResponse> handle(java.lang.Exception e)
-
handle
@ExceptionHandler(io.easywalk.simply.utils.GsonTools.JsonObjectExtensionConflictException.class) public org.springframework.http.ResponseEntity<io.easywalk.simply.controllable.SimplyErrorResponse> handle(io.easywalk.simply.utils.GsonTools.JsonObjectExtensionConflictException e)
-
-