Class ExceptionHandler
- java.lang.Object
-
- org.camunda.bpm.engine.rest.exception.ExceptionHandler
-
- All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<java.lang.Throwable>
@Provider public class ExceptionHandler extends java.lang.Object implements javax.ws.rs.ext.ExceptionMapper<java.lang.Throwable>
Translates anyThrowable
to a HTTP 500 error and a JSON response. Response content format:{"type" : "ExceptionType", "message" : "some exception message"}
- Author:
- nico.rehwaldt
-
-
Constructor Summary
Constructors Constructor Description ExceptionHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
toResponse(java.lang.Throwable throwable)
-