org.camunda.bpm.engine.rest.exception
Class RestExceptionHandler

java.lang.Object
  extended by 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>

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 Summary
RestExceptionHandler()
           
 
Method Summary
protected  String getStackTrace(Throwable aThrowable)
           
 javax.ws.rs.core.Response toResponse(RestException exception)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RestExceptionHandler

public RestExceptionHandler()
Method Detail

toResponse

public javax.ws.rs.core.Response toResponse(RestException exception)
Specified by:
toResponse in interface javax.ws.rs.ext.ExceptionMapper<RestException>

getStackTrace

protected String getStackTrace(Throwable aThrowable)


Copyright © 2016 camunda services GmbH. All rights reserved.