11 #ifndef WRENCH_EXCEPTION_H
12 #define WRENCH_EXCEPTION_H
19 #include "wrench/workflow/failure_causes/FailureCause.h"
32 class WorkflowExecutionException:
public std::exception {
35 std::shared_ptr<FailureCause> cause;
43 virtual const char* what()
const throw()
46 return strdup(cause->toString().c_str());
53 std::shared_ptr<FailureCause> getCause() {
66 WorkflowExecutionException(std::shared_ptr<FailureCause> cause) {
84 #endif //WRENCH_EXCEPTION_H