24 #ifndef __GLIP_EXCEPTION__
25 #define __GLIP_EXCEPTION__
68 std::string completeMessage;
69 bool subordinateException,
71 std::vector<Exception> subExceptions;
74 void cleanSubException(
void);
75 std::string header(
bool showHeaderControl=
true)
const;
76 void updateCompleteMessage(
void);
80 Exception(
const std::string& m, std::string f=
"",
int l=-1,
const Type& t=UnspecifiedException);
84 Type getType(
void) const;
85 const
char* what(
void) const throw();
86 const std::
string& getMessage(
void) const throw();
87 const std::
string& getFilename(
void) const throw();
88 std::
string getShortFilename(
void) const;
89 int getLineNumber(
void) const throw();
91 Exception& operator=(const std::exception& e);
93 Exception& operator<<(const std::exception& e);
98 int getNumSubExceptions(
void) const throw();
100 bool isSubException(
void) const;
101 void hideHeader(
bool enabled=true);
102 bool isHeaderHidden(
void) const;
113 template<typename TYPE>
114 bool fromString(const std::
string & Str, TYPE& Dest)
116 std::istringstream iss( Str );
117 return static_cast<bool>(iss >> Dest);
126 template<
typename TYPE>
127 std::string toString(
const TYPE& Value )
129 std::ostringstream oss;
From a glCall, or similar.
Definition: Exception.hpp:53
From a failed shader compilation, with code provided by the client.
Definition: Exception.hpp:55
From a Module.
Definition: Exception.hpp:51
From a failed script evaluaton, with code provided by the client.
Definition: Exception.hpp:57
Definition: Component.hpp:32
Exception class, derived from std::exception.
Definition: Exception.hpp:40
From a core library component.
Definition: Exception.hpp:49
Unspecified exception (default if not specified).
Definition: Exception.hpp:47
Type
Exception type.
Definition: Exception.hpp:44