docs: protected void propagateException(ActivityExecution execution, Exception ex) throws Exception {
      BpmnError bpmnError = checkIfCauseOfExceptionIsBpmnError(ex);
      if (bpmnError != null) {
        propagateBpmnError(bpmnError, execution);
      } else {
        propagateExceptionAsError(ex, execution);
      }
    }