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