FileNotFound.h
1 
10 #ifndef WRENCH_FILENOTFOUND_H
11 #define WRENCH_FILENOTFOUND_H
12 
13 #include <set>
14 #include <string>
15 
16 #include "wrench/workflow/failure_causes/FailureCause.h"
17 
18 namespace wrench {
19 
20  class WorkflowFile;
21  class FileLocation;
22 
23  /***********************/
25  /***********************/
26 
30  class FileNotFound : public FailureCause {
31 
32  public:
33  /***********************/
35  /***********************/
36  FileNotFound(WorkflowFile *file, std::shared_ptr<FileLocation> location);
37  /***********************/
39  /***********************/
40 
42  std::shared_ptr<FileLocation> getLocation();
43  std::string toString();
44 
45  private:
46  WorkflowFile *file;
47  std::shared_ptr<FileLocation> location;
48  };
49 
50  /***********************/
52  /***********************/
53 };
54 
55 
56 #endif //WRENCH_FILENOTFOUND_H
A "file was not found" failure cause.
Definition: FileNotFound.h:30
WorkflowFile * getFile()
Getter.
Definition: FileNotFound.cpp:34
std::shared_ptr< FileLocation > getLocation()
Getter.
Definition: FileNotFound.cpp:42
std::string toString()
Get the human-readable failure message.
Definition: FileNotFound.cpp:50
Definition: Alarm.cpp:20
A top-level class to describe all simulation-valid failures that can occur during workflow execution ...
Definition: FailureCause.h:31
A data file used/produced by a WorkflowTask in a Workflow.
Definition: WorkflowFile.h:26