wrench::NotAllowed Class Reference
A "operation not allowed" failure cause. More...
#include <FailureCause.h>
Inheritance diagram for wrench::NotAllowed:
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 () |
Get the human-readable failure message. More... | |
Detailed Description
A "operation not allowed" failure cause.
Constructor & Destructor Documentation
◆ NotAllowed()
wrench::NotAllowed::NotAllowed | ( | std::shared_ptr< Service > | service, |
std::string & | error_message | ||
) |
Constructor.
- Parameters
-
service the service that cause the error (or nullptr if no known service for the error) error_message a custom error message
Member Function Documentation
◆ getService()
std::shared_ptr< Service > wrench::NotAllowed::getService | ( | ) |
Get the service that caused the error.
- Returns
- the service
◆ toString()
|
virtual |
The documentation for this class was generated from the following files:
- /home/wrench/wrench/include/wrench/workflow/execution_events/FailureCause.h
- /home/wrench/wrench/src/wrench/workflow/execution_events/FailureCause.cpp