@Provider public class IllegalArgumentExceptionMapper extends AbstractExceptionMapper<IllegalArgumentException>
| Constructor and Description |
|---|
IllegalArgumentExceptionMapper() |
| Modifier and Type | Method and Description |
|---|---|
String |
getErrorMessage(IllegalArgumentException exception)
Get the message of the exception in mapper.
|
int |
getStatusCode() |
ApiResult<Object> |
handle(IllegalArgumentException exception,
ApiResult<Object> apiResult)
Handle messages of
IllegalArgumentException |
getCurrentUserLocale, getLocalizedMessage, toResponsepublic String getErrorMessage(IllegalArgumentException exception)
getErrorMessage in class AbstractExceptionMapper<IllegalArgumentException>exception - thrownpublic int getStatusCode()
getStatusCode in class AbstractExceptionMapper<IllegalArgumentException>Response.Status.BAD_REQUESTpublic ApiResult<Object> handle(IllegalArgumentException exception, ApiResult<Object> apiResult)
IllegalArgumentExceptionhandle in class AbstractExceptionMapper<IllegalArgumentException>exception - IllegalArgumentExceptionapiResult - error resultApiResult with error messagesCopyright © 2019 Communote team. All rights reserved.