public class BpmnExceptionHandler extends Object
Constructor and Description |
---|
BpmnExceptionHandler() |
Modifier and Type | Method and Description |
---|---|
protected static BpmnError |
checkIfCauseOfExceptionIsBpmnError(Throwable e)
Searches recursively through the exception to see if the exception itself
or one of its causes is a
BpmnError . |
protected static boolean |
isProcessEngineExceptionWithoutCause(Exception exception) |
protected static boolean |
isTransactionNotActive() |
static void |
propagateBpmnError(BpmnError error,
ActivityExecution execution) |
static void |
propagateError(String errorCode,
String errorMessage,
Exception origException,
ActivityExecution execution) |
static void |
propagateException(ActivityExecution execution,
Exception ex)
Decides how to propagate the exception properly, e.g.
|
protected static void |
propagateExceptionAsError(Exception exception,
ActivityExecution execution) |
public static void propagateException(ActivityExecution execution, Exception ex) throws Exception
execution
- the current executionex
- the exception to propagateException
- if no error handler could be foundprotected static void propagateExceptionAsError(Exception exception, ActivityExecution execution) throws Exception
Exception
protected static boolean isTransactionNotActive()
protected static boolean isProcessEngineExceptionWithoutCause(Exception exception)
protected static BpmnError checkIfCauseOfExceptionIsBpmnError(Throwable e)
BpmnError
.e
- the exception to checkpublic static void propagateBpmnError(BpmnError error, ActivityExecution execution) throws Exception
Exception
Copyright © 2019. All rights reserved.