5 #include <SimoxUtility/algorithm/string/string_tools.h>
7 #include "../MemoryID.h"
18 const std::string&
function,
26 const std::string&
function,
30 ss <<
"Invalid value for argument '" << argument <<
"' in function " <<
function <<
"()";
43 const std::string& ownTerm,
44 const std::string& containerName) :
45 ArMemError(makeMsg(gottenName, ownTerm, containerName))
51 const std::string& containerTerm,
52 const std::string& containerName)
55 ss <<
"Name '" << gottenName <<
"' does not match name of " << containerTerm <<
" '"
56 << containerName <<
"'.";
61 const std::string& existingName,
62 const std::string& ownTerm,
63 const std::string& ownName) :
64 ArMemError(makeMsg(existingTerm, existingName, ownTerm, ownName))
70 const std::string& existingName,
71 const std::string& ownTerm,
72 const std::string& ownName)
75 ss << simox::alg::capitalize_words(existingTerm) <<
" with name '" << existingName <<
"' "
76 <<
"already exists in " << ownTerm <<
" '" << ownName <<
"'.";
81 const std::string& missingName,
82 const std::string& containerTerm,
83 const std::string& containerName,
85 ArMemError(makeMsg(missingTerm, missingName, containerTerm, containerName, size))
91 const std::string& missingName,
92 const std::string& containerTerm,
93 const std::string& containerName,
97 ss <<
"No " << missingTerm <<
" with name '" << missingName <<
"' "
98 <<
"in " << containerTerm <<
" '" << containerName <<
"' (with size " << size <<
").";
103 const std::string& containerTerm,
112 const std::string& containerTerm,
116 std::stringstream ss;
117 ss <<
"No " << missingTerm <<
" in " << containerTerm <<
" " << containerID <<
".";
122 const std::string& missingName,
123 const std::string& ownTerm,
124 const std::string& ownName) :
125 ArMemError(makeMsg(missingTerm, missingName, ownTerm, ownName))
131 const std::string& missingName,
132 const std::string& ownTerm,
133 const std::string& ownName)
135 std::stringstream ss;
136 ss <<
"No " << missingTerm <<
" data at '" << missingName <<
"' "
137 <<
"in " << ownTerm <<
" '" << ownName <<
"'.";
149 std::stringstream ss;
150 ss <<
"Failed to parse " << semanticName <<
" '" <<
string <<
"' as integer.";
162 std::stringstream ss;
163 ss <<
"Invalid memory ID " <<
id <<
": " <<
message;
176 std::stringstream ss;
177 ss <<
"History of entity '" << entityName <<
"' is empty";
197 std::stringstream ss;
198 ss <<
"Unknown " << term <<
" query type '" << typeName <<
"'.";
210 std::stringstream ss;
211 ss <<
"Query from memory " <<
memory <<
" failed with message: " <<
message;
223 std::stringstream ss;
224 ss <<
"IOError on path \"" <<
path <<
"\".";
240 std::stringstream sstream;
241 sstream <<
"Proxy \"" << proxyName <<
"\" not set.";
246 return sstream.str();
250 const std::string& calledFunction) :
251 ArMemError(makeMsg(queriedId, calledFunction))
258 std::stringstream ss;
259 ss <<
"The ReadStream for " << queriedId <<
" was already running when " << calledFunction