Class ExceptionHandlerHelper
- java.lang.Object
-
- org.camunda.bpm.engine.rest.exception.ExceptionHandlerHelper
-
public class ExceptionHandlerHelper extends java.lang.Object
- Author:
- Svetlana Dorokhova.
-
-
Field Summary
Fields Modifier and Type Field Description protected static ExceptionHandlerHelper
INSTANCE
protected static ExceptionLogger
LOGGER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ExceptionDto
fromException(java.lang.Throwable e)
protected java.lang.Integer
getCode(java.lang.Throwable throwable)
static ExceptionHandlerHelper
getInstance()
javax.ws.rs.core.Response
getResponse(java.lang.Throwable throwable)
javax.ws.rs.core.Response.Status
getStatus(java.lang.Throwable exception)
javax.ws.rs.core.Response.Status
getStatus(ProcessEngineException exception)
javax.ws.rs.core.Response.Status
getStatus(RestException exception)
protected void
provideExceptionCode(java.lang.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(java.lang.Throwable throwable)
-
provideExceptionCode
protected void provideExceptionCode(java.lang.Throwable throwable, ExceptionDto exceptionDto)
-
getCode
protected java.lang.Integer getCode(java.lang.Throwable throwable)
-
fromException
public ExceptionDto fromException(java.lang.Throwable e)
-
getStatus
public javax.ws.rs.core.Response.Status getStatus(java.lang.Throwable exception)
-
getStatus
public javax.ws.rs.core.Response.Status getStatus(ProcessEngineException exception)
-
getStatus
public javax.ws.rs.core.Response.Status getStatus(RestException exception)
-
-