@Provider public class ExceptionMapper extends AbstractExceptionMapper<Exception>
| Constructor and Description |
|---|
ExceptionMapper() |
| Modifier and Type | Method and Description |
|---|---|
String |
getErrorMessage(Exception exception)
Get the message of the exception in mapper.
|
int |
getStatusCode() |
getCurrentUserLocale, getLocalizedMessage, handle, toResponsepublic String getErrorMessage(Exception exception)
getErrorMessage in class AbstractExceptionMapper<Exception>exception - thrownpublic int getStatusCode()
getStatusCode in class AbstractExceptionMapper<Exception>Response.Status.INTERNAL_SERVER_ERRORCopyright © 2019 Communote team. All rights reserved.