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