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