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