WRENCH
1.11
Cyberinfrastructure Simulation Workbench
Overview
Installation
Getting Started
WRENCH 101
WRENCH 102
APIs Reference
User
Developer
Internal
include
wrench
failure_causes
FileNotFound.h
1
10
#ifndef WRENCH_FILENOTFOUND_H
11
#define WRENCH_FILENOTFOUND_H
12
13
#include <set>
14
#include <string>
15
16
#include "FailureCause.h"
17
18
namespace
wrench
{
19
20
class
DataFile;
21
class
FileLocation;
22
23
/***********************/
25
/***********************/
26
30
class
FileNotFound :
public
FailureCause {
31
32
public
:
33
/***********************/
35
/***********************/
36
FileNotFound(std::shared_ptr<DataFile>file, std::shared_ptr<FileLocation> location);
37
/***********************/
39
/***********************/
40
41
std::shared_ptr<DataFile>getFile();
42
std::shared_ptr<FileLocation>
getLocation
();
43
std::string
toString
()
override
;
44
45
private
:
46
std::shared_ptr<DataFile>file;
47
std::shared_ptr<FileLocation> location;
48
};
49
50
/***********************/
52
/***********************/
53
};
54
55
56
#endif //WRENCH_FILENOTFOUND_H
wrench::toString
std::string toString() override
Return an error message that describes the failure cause (to be overridden)
Definition:
ComputeThreadHasDied.cpp:29
wrench
Definition:
Action.cpp:28
wrench::getLocation
std::shared_ptr< FileLocation > getLocation()
Getter.
Definition:
FileNotFound.cpp:42