Class RestControllerExceptionHandler
- java.lang.Object
-
- com.aquima.web.rest.v1.controller.RestControllerExceptionHandler
-
@RestApiContext @ControllerAdvice(basePackages="com.aquima.web.rest.v1.controller") public class RestControllerExceptionHandler extends Object
-
-
Constructor Summary
Constructors Constructor Description RestControllerExceptionHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ErrorMessage
handleInconsistentRequestParameters(InvalidParameterException invalidParameterException)
ErrorMessage
handleResourceNotFound(ResourceNotFoundException resouceNotFoundException)
ErrorMessage
handleServerError(RestException restException)
ErrorMessage
handleUnauthorizedUserException(UnauthorizedUserException unauthorizedUserException)
-
-
-
Method Detail
-
handleInconsistentRequestParameters
@ExceptionHandler(InvalidParameterException.class) @ResponseStatus(BAD_REQUEST) @ResponseBody public ErrorMessage handleInconsistentRequestParameters(InvalidParameterException invalidParameterException)
-
handleResourceNotFound
@ExceptionHandler(ResourceNotFoundException.class) @ResponseStatus(NOT_FOUND) @ResponseBody public ErrorMessage handleResourceNotFound(ResourceNotFoundException resouceNotFoundException)
-
handleServerError
@ExceptionHandler(RestException.class) @ResponseStatus(INTERNAL_SERVER_ERROR) @ResponseBody public ErrorMessage handleServerError(RestException restException)
-
handleUnauthorizedUserException
@ExceptionHandler(UnauthorizedUserException.class) @ResponseStatus(UNAUTHORIZED) @ResponseBody public ErrorMessage handleUnauthorizedUserException(UnauthorizedUserException unauthorizedUserException)
-
-