17 #ifndef STROMX_RUNTIME_EXCEPTION_H 18 #define STROMX_RUNTIME_EXCEPTION_H 22 #include "stromx/runtime/Config.h" 31 class STROMX_RUNTIME_API
Exception :
public std::exception
35 explicit Exception(
const std::string & message);
39 virtual const char* what()
const throw() {
return m_message.c_str(); }
42 virtual const std::string &
message()
const {
return m_message; }
45 virtual const std::string &
callStack()
const {
return m_callStack; }
48 std::string m_message;
49 std::string m_callStack;
65 WrongId(
const std::string & message =
"WrongId")
74 WrongState(
const std::string & message =
"WrongState")
92 Interrupt(
const std::string & message =
"Interrupt")
101 FileException(
const std::string & filename,
const std::string & container,
102 const std::string & message)
104 m_filename(filename),
105 m_container(container)
110 const std::string & filename()
const {
return m_filename; }
111 const std::string & container()
const {
return m_container; }
113 void setContainer(
const std::string & container) { m_container = container; }
116 const std::string m_filename;
117 std::string m_container;
126 const std::string & container,
127 const std::string & message =
"")
137 const std::string & message)
142 const std::string & container,
143 const std::string & message)
153 const std::string & message)
158 const std::string & container,
159 const std::string & message)
168 OutOfMemory(
const std::string & message =
"OutOfMemory")
177 Timeout(
const std::string & message =
"Timeout")
186 BadCast(
const std::string & message =
"BadCast")
204 AccessEmpty(
const std::string & message =
"AccessEmpty")
216 const std::string & package()
const {
return m_package; }
217 const std::string & type()
const {
return m_package; }
220 DataException(
const std::string & package,
const std::string & type,
221 const std::string & message =
"DataException")
228 const std::string m_package;
229 const std::string m_type;
237 const std::string & message =
"SerializationError")
247 const std::string & message =
"DeserializationError")
259 const std::string & package()
const {
return m_package; }
260 const std::string & type()
const {
return m_type; }
264 const std::string & message =
"SerializationError")
271 const std::string m_package;
272 const std::string m_type;
280 const std::string & message =
"OperatorAllocationFailed")
290 const std::string & message =
"DataAllocationFailed")
299 NoInputFile(
const std::string & message =
"NoInputFile")
306 #endif // STROMX_RUNTIME_EXCEPTION_H Data could not be serialized.
Definition: Exception.h:233
virtual const std::string & callStack() const
Definition: Exception.h:45
Tried to get the data of an empty read or write access.
Definition: Exception.h:201
Not enought memory.
Definition: Exception.h:165
An object was identified by a wrong ID.
Definition: Exception.h:62
Error related to a Data object.
Definition: Exception.h:210
An operation timed out.
Definition: Exception.h:174
A file related exception.
Definition: Exception.h:98
The file content is not consistent.
Definition: Exception.h:149
Data could not be allocated.
Definition: Exception.h:286
The stromx class library.
Definition: AdjustRgbChannels.cpp:29
Error related to a data and operator factory.
Definition: Exception.h:253
An internal, unexpected error occurred.
Definition: Exception.h:80
A wrong argument was passed to a function.
Definition: Exception.h:53
A function which is not implemented was called.
Definition: Exception.h:192
Data could not be deserialized.
Definition: Exception.h:243
Abstract stromx exception.
Definition: Exception.h:31
The current state does not allow a specific operation.
Definition: Exception.h:71
The current thread was stopped.
Definition: Exception.h:89
An error occurred during file access.
Definition: Exception.h:121
virtual const std::string & message() const
Definition: Exception.h:42
An impossible cast was attempted.
Definition: Exception.h:183
Operator could not be allocated.
Definition: Exception.h:276