Package com.deere.isg.worktracker.spring
Class ZombieExceptionHandler
- java.lang.Object
-
- com.deere.isg.worktracker.spring.ZombieExceptionHandler
-
@ControllerAdvice public class ZombieExceptionHandler extends Object
-
-
Constructor Summary
Constructors Constructor Description ZombieExceptionHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<Object>handleAllEx(Exception exception)org.springframework.http.ResponseEntity<Object>handleZombieEx(Exception ex)
-
-
-
Method Detail
-
handleZombieEx
@ResponseStatus(GATEWAY_TIMEOUT) @ExceptionHandler({com.deere.isg.worktracker.ZombieException.class,com.deere.isg.worktracker.ZombieError.class}) @ResponseBody public org.springframework.http.ResponseEntity<Object> handleZombieEx(Exception ex)
-
handleAllEx
@ResponseStatus(INTERNAL_SERVER_ERROR) @ExceptionHandler(java.lang.Exception.class) @ResponseBody public org.springframework.http.ResponseEntity<Object> handleAllEx(Exception exception)
-
-