WRENCH
1.11
Cyberinfrastructure Simulation Workbench
|
Overview | Installation | Getting Started | WRENCH 101 | WRENCH 102 |
A "operation not allowed" failure cause. More...
#include <NotAllowed.h>
Public Member Functions | |
NotAllowed (std::shared_ptr< Service > service, std::string &error_message) | |
Constructor. More... | |
std::shared_ptr< Service > | getService () |
Get the service that caused the error. More... | |
std::string | toString () override |
Get the human-readable failure message. More... | |
A "operation not allowed" failure cause.
wrench::NotAllowed::NotAllowed | ( | std::shared_ptr< Service > | service, |
std::string & | error_message | ||
) |
Constructor.
service | the service that cause the error (or nullptr if no known service for the error) |
error_message | a custom error message |
std::shared_ptr< Service > wrench::NotAllowed::getService | ( | ) |
Get the service that caused the error.
|
overridevirtual |