Class BaseExceptionHandler<T>
- java.lang.Object
-
- io.automatiko.engine.addons.process.management.exception.BaseExceptionHandler<T>
-
- Direct Known Subclasses:
ExceptionsHandler
public abstract class BaseExceptionHandler<T> extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringFAILED_NODE_IDstatic java.lang.StringIDstatic java.lang.StringMESSAGEstatic java.lang.StringNODE_IDstatic java.lang.StringNODE_INSTANCE_IDstatic java.lang.StringPROCESS_INSTANCE_IDstatic java.lang.StringVARIABLE
-
Constructor Summary
Constructors Constructor Description BaseExceptionHandler()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract <R> TbadRequest(R body)protected abstract <R> Tconflict(R body)protected abstract <R> Tforbidden(R body)protected abstract <R> TinternalError(R body)<R extends java.lang.Exception>
TmapException(R exception)protected abstract <R> TnotFound(R body)
-
-
-
Field Detail
-
MESSAGE
public static final java.lang.String MESSAGE
- See Also:
- Constant Field Values
-
PROCESS_INSTANCE_ID
public static final java.lang.String PROCESS_INSTANCE_ID
- See Also:
- Constant Field Values
-
VARIABLE
public static final java.lang.String VARIABLE
- See Also:
- Constant Field Values
-
NODE_INSTANCE_ID
public static final java.lang.String NODE_INSTANCE_ID
- See Also:
- Constant Field Values
-
NODE_ID
public static final java.lang.String NODE_ID
- See Also:
- Constant Field Values
-
FAILED_NODE_ID
public static final java.lang.String FAILED_NODE_ID
- See Also:
- Constant Field Values
-
ID
public static final java.lang.String ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
badRequest
protected abstract <R> T badRequest(R body)
-
conflict
protected abstract <R> T conflict(R body)
-
internalError
protected abstract <R> T internalError(R body)
-
notFound
protected abstract <R> T notFound(R body)
-
forbidden
protected abstract <R> T forbidden(R body)
-
mapException
public <R extends java.lang.Exception> T mapException(R exception)
-
-