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