mns.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "ArMemError.h"
4 
5 namespace armarx::armem::error
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
armarx::armem::error::MemoryNameSystemQueryFailed
Indicates that a query to the Memory Name System failed.
Definition: mns.h:11
armarx::armem::error::ServerRegistrationOrRemovalFailed::ServerRegistrationOrRemovalFailed
ServerRegistrationOrRemovalFailed(const std::string &verb, const MemoryID &memoryID, const std::string &errorMessage="")
Definition: mns.cpp:48
armarx::armem::error::ArMemError
Base class for all exceptions thrown by the armem library.
Definition: ArMemError.h:18
armarx::armem::error::MemoryNameSystemQueryFailed::makeMsg
static std::string makeMsg(const std::string &function, const std::string &errorMessage="")
Definition: mns.cpp:17
armarx::armem::error::MemoryNameSystemQueryFailed::MemoryNameSystemQueryFailed
MemoryNameSystemQueryFailed(const std::string &function, const std::string &errorMessage="")
Definition: mns.cpp:10
ArMemError.h
armarx::armem::error::CouldNotResolveMemoryServer::makeMsg
static std::string makeMsg(const MemoryID &memoryID, const std::string &errorMessage="")
Definition: mns.cpp:36
armarx::armem::MemoryID
A memory ID.
Definition: MemoryID.h:47
armarx::armem::error::CouldNotResolveMemoryServer::CouldNotResolveMemoryServer
CouldNotResolveMemoryServer(const MemoryID &memoryID, const std::string &errorMessage="")
Definition: mns.cpp:29
armarx::armem::error::ServerRegistrationOrRemovalFailed
Indicates that a query to the Memory Name System failed.
Definition: mns.h:35
armarx::armem::index::memoryID
const MemoryID memoryID
Definition: memory_ids.cpp:28
armarx::armem::error::CouldNotResolveMemoryServer
Indicates that a query to the Memory Name System failed.
Definition: mns.h:24
armarx::armem::error::ServerRegistrationOrRemovalFailed::makeMsg
static std::string makeMsg(const std::string &verb, const MemoryID &memoryID, const std::string &errorMessage="")
Definition: mns.cpp:57
armarx::armem::error
Definition: ArMemError.cpp:9