11 #ifndef WRENCH_EXCEPTION_H
12 #define WRENCH_EXCEPTION_H
19 #include "wrench/workflow/failure_causes/FailureCause.h"
35 std::shared_ptr<FailureCause> cause;
43 virtual const char*
what()
const throw()
46 return strdup(cause->toString().c_str());
84 #endif //WRENCH_EXCEPTION_H
An generic exception that is thrown whenever something unexpected (but simulation-valid) occurs durin...
Definition: WorkflowExecutionException.h:32
virtual const char * what() const
Get the exception's error message.
Definition: WorkflowExecutionException.h:43
std::shared_ptr< FailureCause > getCause()
Get the failure cause.
Definition: WorkflowExecutionException.h:53