wrench::FunctionalityNotAvailable

class FunctionalityNotAvailable : public wrench::FailureCause

A “requested functionality is not available on that service” failure cause.

Public Functions

FunctionalityNotAvailable(std::shared_ptr<Service> service, std::string functionality_name)

Constructor.

Parameters
  • service – the service

  • functionality_name – a description of the functionality that’s not available

std::string getFunctionalityName()

Getter.

Returns

the functionality name

std::shared_ptr<Service> getService()

Getter.

Returns

the service

virtual std::string toString() override

Get the human-readable failure message.

Returns

the message