WRENCH
1.11
Cyberinfrastructure Simulation Workbench
Overview
Installation
Getting Started
WRENCH 101
WRENCH 102
APIs Reference
User
Developer
Internal
include
wrench
failure_causes
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 "FailureCause.h"
18
#include "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
()
override
;
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() override
Return an error message that describes the failure cause (to be overridden)
Definition:
ComputeThreadHasDied.cpp:29
wrench::getInvalidPath
std::string getInvalidPath()
Get the invalid path.
Definition:
InvalidDirectoryPath.cpp:47
wrench
Definition:
Action.cpp:28
wrench::getStorageService
std::shared_ptr< StorageService > getStorageService()
Get the storage service at which the path was invalid.
Definition:
InvalidDirectoryPath.cpp:39