WRENCH
1.11
Cyberinfrastructure Simulation Workbench
Overview
Installation
Getting Started
WRENCH 101
WRENCH 102
APIs Reference
User
Developer
Internal
include
wrench
failure_causes
NotAllowed.h
1
10
#ifndef WRENCH_NOT_ALLOWED_H
11
#define WRENCH_NOT_ALLOWED_H
12
13
#include <set>
14
#include <string>
15
16
#include "wrench/services/Service.h"
17
#include "FailureCause.h"
18
19
namespace
wrench
{
20
21
/***********************/
23
/***********************/
24
28
class
NotAllowed :
public
FailureCause {
29
public
:
30
/***********************/
32
/***********************/
33
NotAllowed(std::shared_ptr<Service> service, std::string &error_message);
34
/***********************/
36
/***********************/
37
38
std::shared_ptr<Service> getService();
39
std::string
toString
()
override
;
40
41
private
:
42
std::shared_ptr<Service> service;
43
std::string error_message;
44
};
45
46
/***********************/
48
/***********************/
49
};
50
51
#endif //WRENCH_NOT_ALLOWED_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