| Constructor and Description |
|---|
GenericExceptionMapper() |
| Modifier and Type | Method and Description |
|---|---|
static javax.ws.rs.core.Response |
getExceptionResponse(int status,
String msg)
Returns an exception/error response as a JSON object.
|
javax.ws.rs.core.Response |
toResponse(Exception ex) |
public javax.ws.rs.core.Response toResponse(Exception ex)
toResponse in interface javax.ws.rs.ext.ExceptionMapper<Exception>ex - exceptionpublic static javax.ws.rs.core.Response getExceptionResponse(int status,
String msg)
status - HTTP status codemsg - messageCopyright © 2016 Erudika. All rights reserved.