Class RestExceptionHandler
java.lang.Object
org.camunda.bpm.engine.rest.exception.RestExceptionHandler
- All Implemented Interfaces:
- jakarta.ws.rs.ext.ExceptionMapper<RestException>
@Provider
public class RestExceptionHandler
extends Object
implements jakarta.ws.rs.ext.ExceptionMapper<RestException>
Translates 
RestExceptions 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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponsetoResponse(RestException exception) 
- 
Constructor Details- 
RestExceptionHandlerpublic RestExceptionHandler()
 
- 
- 
Method Details- 
toResponse- Specified by:
- toResponsein interface- jakarta.ws.rs.ext.ExceptionMapper<RestException>
 
 
-