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