Omnidome
Fulldome Mapping Software Toolkit
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions
omni::Exception Class Referenceabstract

Base class for all exception. Throws a message with QString type. More...

#include <exception.h>

Inheritance diagram for omni::Exception:
Inheritance graph
[legend]
Collaboration diagram for omni::Exception:
Collaboration graph
[legend]

Public Types

enum  Type { WARNING, ERROR, FATAL }
 

Public Member Functions

virtual QString message () const =0 throw ()
 This is the method which throw the message string. More...
 
virtual Type type () const =0
 Return type of exception. More...
 
virtual QString typeAsString () const
 

Detailed Description

Base class for all exception. Throws a message with QString type.

Member Enumeration Documentation

Enumerator
WARNING 
ERROR 
FATAL 
31  {
32  WARNING,
33  ERROR,
34  FATAL
35  };
Definition: exception.h:34
Definition: exception.h:33
Definition: exception.h:32

Member Function Documentation

virtual QString omni::Exception::message ( ) const
throw (
)
pure virtual

This is the method which throw the message string.

Implemented in omni::exception::Serialization, and omni::input::exception::CannotHaveChildren.

virtual Type omni::Exception::type ( ) const
pure virtual

Return type of exception.

Implemented in omni::exception::Fatal, omni::exception::Error, and omni::exception::Warning.

virtual QString omni::Exception::typeAsString ( ) const
inlinevirtual
43  {
44  switch (type()) {
45  case WARNING: return "WARNING";
46 
47  case ERROR: return "ERROR";
48 
49  case FATAL: return "FATAL";
50  }
51  return "INVALID";
52  }
virtual Type type() const =0
Return type of exception.
Definition: exception.h:34
Definition: exception.h:33
Definition: exception.h:32

The documentation for this class was generated from the following file: