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