Class RestExceptionHandler
- java.lang.Object
-
- org.camunda.bpm.engine.rest.exception.RestExceptionHandler
-
- All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<RestException>
@Provider public class RestExceptionHandler extends Object implements javax.ws.rs.ext.ExceptionMapper<RestException>
TranslatesRestException
s to error responses according to the status that is set in the exception. Response content format:{"type" : "ExceptionType", "message" : "some exception message"}
- Author:
- Thorben Lindhauer
-
-
Constructor Summary
Constructors Constructor Description RestExceptionHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
toResponse(RestException exception)
-
-
-
Method Detail
-
toResponse
public javax.ws.rs.core.Response toResponse(RestException exception)
- Specified by:
toResponse
in interfacejavax.ws.rs.ext.ExceptionMapper<RestException>
-
-