26 #ifndef CARGO_IPC_EXCEPTION_HPP
27 #define CARGO_IPC_EXCEPTION_HPP
41 : std::runtime_error(message) {}
49 explicit IPCParsingException(
const std::string& message =
"Exception during reading/parsing data from the socket")
148 #endif // CARGO_IPC_EXCEPTION_HPP
Exception to indicate error while removing peer.
Definition: exception.hpp:84
int mCode
Definition: exception.hpp:142
IPCSerializationException(const std::string &message="Exception during writing/serializing data to the socket")
Definition: exception.hpp:58
IPCNaughtyPeerException(const std::string &message="Peer performed a forbidden action.")
Definition: exception.hpp:76
IPCRemovedPeerException(const std::string &message="Removing peer")
Definition: exception.hpp:85
IPCTimeoutException(const std::string &message)
Definition: exception.hpp:103
Exception to indicate error while closing IPC channel.
Definition: exception.hpp:93
int mCode
Definition: exception.hpp:123
Exception to indicate timeout event error.
Definition: exception.hpp:102
Exception to indicate user error.
Definition: exception.hpp:130
IPCSocketException(const int code, const std::string &message)
Definition: exception.hpp:112
IPCPeerDisconnectedException(const std::string &message="No such peer. Might got disconnected.")
Definition: exception.hpp:67
Exception to indicate socket error.
Definition: exception.hpp:111
Definition: exception.hpp:39
int getCode() const
Definition: exception.hpp:136
IPCClosingException(const std::string &message="Closing IPC")
Definition: exception.hpp:94
Exception to indicate error while reading/parsing data from the socket.
Definition: exception.hpp:48
int getCode() const
Definition: exception.hpp:117
IPCException(const std::string &message)
Definition: exception.hpp:40
Exception to indicate error while writing/serializing data to the socket.
Definition: exception.hpp:57
Exception to indicate that requested peer is not available, i.e.
Definition: exception.hpp:66
IPCUserException(const int code, const std::string &message)
Definition: exception.hpp:131
IPCParsingException(const std::string &message="Exception during reading/parsing data from the socket")
Definition: exception.hpp:49
Exception to indicate that peer performed a forbidden action.
Definition: exception.hpp:75