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()

Get the name of the functionality that wasn’t available.

Returns:

a functionality name

std::shared_ptr<Service> getService()

Get the service on which the functionality was not available.

Returns:

a service

virtual std::string toString() override

Get the human-readable failure message.

Returns:

the message