public class BlogNotFoundExceptionMapper extends Object implements ExceptionMapper<BlogNotFoundException>
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 |
---|
BlogNotFoundExceptionMapper() |
Modifier and Type | Method and Description |
---|---|
Class<BlogNotFoundException> |
getExceptionClass() |
Status |
mapException(BlogNotFoundException exception)
Maps the given exception to a status.
|
public Class<BlogNotFoundException> getExceptionClass()
getExceptionClass
in interface ExceptionMapper<BlogNotFoundException>
public Status mapException(BlogNotFoundException exception)
mapException
in interface ExceptionMapper<BlogNotFoundException>
exception
- The exception to map.Copyright © 2019 Communote team. All rights reserved.