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