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