20 #ifndef OMNI_EXCEPTION_H_
21 #define OMNI_EXCEPTION_H_
38 virtual QString
message()
const throw() = 0;
47 case ERROR:
return "ERROR";
49 case FATAL:
return "FATAL";
55 #define OMNI_EXCEPTION(EXCEPTION) \
56 inline virtual void raise() const { \
59 inline QException *clone() const { \
60 return new EXCEPTION(*this); \
96 return QString(
"Serialization Exception. Invalid Id: ") +
id_.
str();
Definition: exception.h:78
Id type for classes An Id must only contain alpha numerical characters and must begin with a letter...
Definition: Id.h:34
Definition: exception.h:71
Type type() const
Return type of exception.
Definition: exception.h:80
virtual QString typeAsString() const
Definition: exception.h:43
QString const & str() const
Returns string representation (const)
Definition: Id.cpp:42
QString message() const
This is the method which throw the message string.
Definition: exception.h:94
virtual Type type() const =0
Return type of exception.
#define OMNI_EXCEPTION(EXCEPTION)
Definition: exception.h:55
omni::Id id_
Definition: exception.h:100
Definition: exception.h:64
virtual QString message() const =0
This is the method which throw the message string.
Type
Definition: exception.h:31
Definition: exception.h:34
Base class for all exception. Throws a message with QString type.
Definition: exception.h:29
Type type() const
Return type of exception.
Definition: exception.h:73
Type type() const
Return type of exception.
Definition: exception.h:66
Definition: exception.h:33
Definition: exception.h:32
An exception that occurs during Serialization.
Definition: exception.h:86