mns.h
Go to the documentation of this file.
1#pragma once
2
3#include "ArMemError.h"
4
6{
7
8 /**
9 * @brief Indicates that a query to the Memory Name System failed.
10 */
12 {
13 public:
14 MemoryNameSystemQueryFailed(const std::string& function,
15 const std::string& errorMessage = "");
16
17 static std::string makeMsg(const std::string& function,
18 const std::string& errorMessage = "");
19 };
20
21 /**
22 * @brief Indicates that a query to the Memory Name System failed.
23 */
25 {
26 public:
27 CouldNotResolveMemoryServer(const MemoryID& memoryID, const std::string& errorMessage = "");
28
29 static std::string makeMsg(const MemoryID& memoryID, const std::string& errorMessage = "");
30 };
31
32 /**
33 * @brief Indicates that a query to the Memory Name System failed.
34 */
36 {
37 public:
38 ServerRegistrationOrRemovalFailed(const std::string& verb,
39 const MemoryID& memoryID,
40 const std::string& errorMessage = "");
41
42 static std::string makeMsg(const std::string& verb,
43 const MemoryID& memoryID,
44 const std::string& errorMessage = "");
45 };
46
47
48} // namespace armarx::armem::error
ArMemError(const std::string &msg)
CouldNotResolveMemoryServer(const MemoryID &memoryID, const std::string &errorMessage="")
Definition mns.cpp:29
static std::string makeMsg(const MemoryID &memoryID, const std::string &errorMessage="")
Definition mns.cpp:36
MemoryNameSystemQueryFailed(const std::string &function, const std::string &errorMessage="")
Definition mns.cpp:10
static std::string makeMsg(const std::string &function, const std::string &errorMessage="")
Definition mns.cpp:17
ServerRegistrationOrRemovalFailed(const std::string &verb, const MemoryID &memoryID, const std::string &errorMessage="")
Definition mns.cpp:48
static std::string makeMsg(const std::string &verb, const MemoryID &memoryID, const std::string &errorMessage="")
Definition mns.cpp:57