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