@Provider public class ExceptionHandler extends Object implements javax.ws.rs.ext.ExceptionMapper<Exception>
Exception
to a HTTP 500 error and a JSON response.
Response content format: {"type" : "ExceptionType", "message" : "some exception message"}
Constructor and Description |
---|
ExceptionHandler() |
Modifier and Type | Method and Description |
---|---|
protected String |
getStackTrace(Throwable aThrowable) |
javax.ws.rs.core.Response |
toResponse(Exception exception) |
Copyright © 2015. All rights reserved.