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