WRENCH  1.10
Cyberinfrastructure Simulation Workbench
Overview Installation Getting Started WRENCH 101 WRENCH 102
InvalidDirectoryPath.h
1 
10 #ifndef WRENCH_INVALIDDIRECTORYPATH_H
11 #define WRENCH_INVALIDDIRECTORYPATH_H
12 
13 #include <set>
14 #include <string>
15 
16 #include "wrench/services/Service.h"
17 #include "wrench/workflow/failure_causes/FailureCause.h"
18 #include "wrench/workflow/failure_causes/InvalidDirectoryPath.h"
19 
20 namespace wrench {
21 
22  class StorageService;
23 
24  /***********************/
26  /***********************/
27 
31  class InvalidDirectoryPath : public FailureCause {
32 
33  public:
34  /***********************/
36  /***********************/
37  InvalidDirectoryPath(
38  std::shared_ptr<StorageService> storage_service,
39  std::string invalid_path);
40  /***********************/
42  /***********************/
43 
44  std::shared_ptr<StorageService> getStorageService();
45  std::string getInvalidPath();
46  std::string toString();
47 
48  private:
49  std::shared_ptr<StorageService> storage_service;
50  std::string invalid_path;
51  };
52 
53 
54  /***********************/
56  /***********************/
57 };
58 
59 
60 #endif //WRENCH_INVALIDDIRECTORYPATH_H
wrench::toString
std::string toString()
Return an error message that describes the failure cause (to be overridden)
Definition: FileLocation.cpp:116
wrench::getInvalidPath
std::string getInvalidPath()
Get the invalid path.
Definition: InvalidDirectoryPath.cpp:47
wrench
Definition: Alarm.cpp:20
wrench::getStorageService
std::shared_ptr< StorageService > getStorageService()
Get the location's storage service.
Definition: FileLocation.cpp:129