@Component public class BlogManagementExceptionMapper extends Object implements ExceptionMapper<BlogManagementException>
ExceptionMapper to handle BlogManagementException.AUTHENTICATION_ERROR, AUTHORIZATION_ERROR, BAD_REQUEST, FORBIDDEN, ILLEGAL_PARAMETERS_ERROR, INTERNAL_ERROR, NOT_ACCEPTABLE, NOT_FOUND, OKAY, UNKNOWN_ERROR, VALIDATION_ERROR, WARNING| Constructor and Description |
|---|
BlogManagementExceptionMapper() |
| Modifier and Type | Method and Description |
|---|---|
Class<BlogManagementException> |
getExceptionClass() |
Status |
mapException(BlogManagementException exception)
Maps the given exception to a status.
|
public Class<BlogManagementException> getExceptionClass()
getExceptionClass in interface ExceptionMapper<BlogManagementException>public Status mapException(BlogManagementException exception)
mapException in interface ExceptionMapper<BlogManagementException>exception - The exception to map.Copyright © 2019 Communote team. All rights reserved.