wrench::ServiceIsDown Class Reference

A "service is down" failure cause. More...

#include <ServiceIsDown.h>

Inheritance diagram for wrench::ServiceIsDown:
wrench::FailureCause

Public Member Functions

 ServiceIsDown (std::shared_ptr< Service > service)
 Constructor. More...
 
std::shared_ptr< ServicegetService ()
 Getter. More...
 
std::string toString () override
 Get the human-readable failure message. More...
 

Detailed Description

A "service is down" failure cause.

Constructor & Destructor Documentation

◆ ServiceIsDown()

wrench::ServiceIsDown::ServiceIsDown ( std::shared_ptr< Service service)
explicit

Constructor.

Parameters
servicethe service that was down

Member Function Documentation

◆ getService()

std::shared_ptr< Service > wrench::ServiceIsDown::getService ( )

Getter.

Returns
the service

◆ toString()

std::string wrench::ServiceIsDown::toString ( )
overridevirtual

Get the human-readable failure message.

Returns
the message

Implements wrench::FailureCause.


The documentation for this class was generated from the following files: