wrench::NetworkError
-
class NetworkError : public wrench::FailureCause
A “network error (or endpoint is down)” failure cause.
Public Types
Public Functions
-
std::string getCommPortName()
Returns the name of the CommPort on which the error occurred.
- Returns:
the commport name
-
std::string getMessageName()
Returns the name of the message for which the error occurred.
- Returns:
the message name
-
bool isTimeout()
Returns whether the network error was a timeout.
- Returns:
true or false
-
virtual std::string toString() override
Get the human-readable failure message.
- Returns:
the message
-
bool whileReceiving()
Returns whether the network error occurred while receiving.
- Returns:
true or false
-
bool whileSending()
Returns whether the network error occurred while sending.
- Returns:
true or false
-
std::string getCommPortName()