11 const std::string& errorMessage) :
18 const std::string& errorMessage)
21 ss <<
"Failed to call '" << function <<
"' on the memory name system.\n";
22 if (not errorMessage.empty())
24 ss <<
"\n" << errorMessage;
30 const std::string& errorMessage) :
39 ss <<
"Could not resolve the memory name '" << memoryID <<
"'."
40 <<
"\nMemory server for '" << memoryID <<
"' is not registered.";
41 if (not errorMessage.empty())
43 ss <<
"\n" << errorMessage;
49 const std::string& verb,
51 const std::string& errorMessage) :
59 const std::string& errorMessage)
62 ss <<
"Failed to " << verb <<
" memory server for '" << memoryID
63 <<
"' in the Memory Name System (MNS).";
64 if (not errorMessage.empty())
66 ss <<
"\n" << errorMessage;
std::string str(bool escapeDelimiters=true) const
Get a string representation of this memory ID.
ArMemError(const std::string &msg)
CouldNotResolveMemoryServer(const MemoryID &memoryID, const std::string &errorMessage="")
static std::string makeMsg(const MemoryID &memoryID, const std::string &errorMessage="")
MemoryNameSystemQueryFailed(const std::string &function, const std::string &errorMessage="")
static std::string makeMsg(const std::string &function, const std::string &errorMessage="")
ServerRegistrationOrRemovalFailed(const std::string &verb, const MemoryID &memoryID, const std::string &errorMessage="")
static std::string makeMsg(const std::string &verb, const MemoryID &memoryID, const std::string &errorMessage="")