@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, toResponse
public String getErrorMessage(Exception exception)
getErrorMessage
in class AbstractExceptionMapper<Exception>
exception
- thrownpublic int getStatusCode()
getStatusCode
in class AbstractExceptionMapper<Exception>
Response.Status.INTERNAL_SERVER_ERROR
Copyright © 2019 Communote team. All rights reserved.