Class ExceptionHandlerHelper
- java.lang.Object
-
- org.camunda.bpm.engine.rest.exception.ExceptionHandlerHelper
-
public class ExceptionHandlerHelper extends Object
- Author:
- Svetlana Dorokhova.
-
-
Field Summary
Fields Modifier and Type Field Description protected static ExceptionHandlerHelperINSTANCEprotected static ExceptionLoggerLOGGER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ExceptionDtofromException(Throwable e)protected IntegergetCode(Throwable throwable)static ExceptionHandlerHelpergetInstance()javax.ws.rs.core.ResponsegetResponse(Throwable throwable)javax.ws.rs.core.Response.StatusgetStatus(Throwable exception)javax.ws.rs.core.Response.StatusgetStatus(ProcessEngineException exception)javax.ws.rs.core.Response.StatusgetStatus(RestException exception)protected voidprovideExceptionCode(Throwable throwable, ExceptionDto exceptionDto)
-
-
-
Field Detail
-
LOGGER
protected static final ExceptionLogger LOGGER
-
INSTANCE
protected static ExceptionHandlerHelper INSTANCE
-
-
Method Detail
-
getInstance
public static ExceptionHandlerHelper getInstance()
-
getResponse
public javax.ws.rs.core.Response getResponse(Throwable throwable)
-
provideExceptionCode
protected void provideExceptionCode(Throwable throwable, ExceptionDto exceptionDto)
-
fromException
public ExceptionDto fromException(Throwable e)
-
getStatus
public javax.ws.rs.core.Response.Status getStatus(Throwable exception)
-
getStatus
public javax.ws.rs.core.Response.Status getStatus(ProcessEngineException exception)
-
getStatus
public javax.ws.rs.core.Response.Status getStatus(RestException exception)
-
-