Package com.academy.stratum.controller
Class ExceptionHandlerController
- java.lang.Object
-
- com.academy.stratum.controller.ExceptionHandlerController
-
@ControllerAdvice public class ExceptionHandlerController extends java.lang.Object
Handles exceptions, which could happen during execution one of the method of MVC controllers- Author:
- Ruslan Nazirov
-
-
Constructor Summary
Constructors Constructor Description ExceptionHandlerController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>
handleException(RestException e)
Handles REST exception
-
-
-
Method Detail
-
handleException
@ExceptionHandler(RestException.class) @ResponseBody public java.util.Map<java.lang.String,java.lang.Object> handleException(RestException e)
Handles REST exception- Parameters:
e
- REST Exception- Returns:
- Ajax response with error details
-
-