@Provider public class ExceptionHandler extends Object implements javax.ws.rs.ext.ExceptionMapper<Throwable>
Throwable 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(Throwable throwable) |
Copyright © 2019. All rights reserved.