10 #ifndef WRENCH_NETWORK_ERROR_H
11 #define WRENCH_NETWORK_ERROR_H
16 #include "FailureCause.h"
28 class NetworkError :
public FailureCause {
48 NetworkError(NetworkError::OperationType, NetworkError::ErrorType, std::string mailbox);
60 NetworkError::OperationType operation_type;
61 NetworkError::ErrorType error_type;
62 bool while_sending =
false;
63 std::string mailbox =
"";
73 #endif //WRENCH_NETWORK_ERROR_H
bool whileReceiving()
Returns whether the network error occurred while receiving.
Definition: NetworkError.cpp:46
std::string toString() override
Return an error message that describes the failure cause (to be overridden)
Definition: ComputeThreadHasDied.cpp:29
std::string getMailbox()
Returns the mailbox name on which the error occurred.
Definition: NetworkError.cpp:70
Definition: Action.cpp:28
bool isTimeout()
Returns whether the network error was a timeout.
Definition: NetworkError.cpp:62
bool whileSending()
Returns whether the network error occurred while sending.
Definition: NetworkError.cpp:54