cause = (Throwable)fault;
} else {
cause = new SwitchYardException(fmsg);
cause.fillInStackTrace();
}
WorkItemHandlerRuntimeException wihre = new WorkItemHandlerRuntimeException(cause, fmsg);
wihre.setStackTrace(cause.getStackTrace());
wihre.setInformation(SERVICE_NAME, serviceName != null ? serviceName.toString() : null);
wihre.setInformation(OPERATION_NAME, operationName);
wihre.setInformation(PARAMETER_NAME, parameterName);
wihre.setInformation(RESULT_NAME, resultName);
wihre.setInformation(FAULT_NAME, faultName);
wihre.setInformation(FAULT_EVENT_ID, faultEventId);
wihre.setInformation(FAULT_ACTION, faultAction.name());
wihre.setInformation(WorkItemHandlerRuntimeException.WORKITEMHANDLERTYPE, getClass().getSimpleName());
runtimeException = wihre;
}
throw runtimeException;
}
}