org.camunda.bpm.engine.rest.exception
Class ProcessEngineExceptionHandler
java.lang.Object
org.camunda.bpm.engine.rest.exception.ProcessEngineExceptionHandler
- All Implemented Interfaces:
- javax.ws.rs.ext.ExceptionMapper<ProcessEngineException>
@Provider
public class ProcessEngineExceptionHandler
- extends Object
- implements javax.ws.rs.ext.ExceptionMapper<ProcessEngineException>
Translates any ProcessEngineException to a HTTP 500 error and a JSON response.
Response content format: {"type" : "ExceptionType", "message" : "some exception message"}
Provides dedicated exception handling for AuthorizationExceptions:
The status code is always set to 403, "Forbidden" and details about the requested resource and
violated permission are added to the response body
- Author:
- Thorben Lindhauer, Daniel Meyer
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProcessEngineExceptionHandler
public ProcessEngineExceptionHandler()
toResponse
public javax.ws.rs.core.Response toResponse(ProcessEngineException exception)
- Specified by:
toResponse in interface javax.ws.rs.ext.ExceptionMapper<ProcessEngineException>
getStackTrace
protected String getStackTrace(Throwable aThrowable)
Copyright © 2016 camunda services GmbH. All rights reserved.