30 #ifndef _CEGUIExceptions_h_
31 #define _CEGUIExceptions_h_
33 #include "CEGUIBase.h"
34 #include "CEGUIString.h"
80 {
return d_filename; }
93 const char* what()
const throw();
118 const
String& filename = "",
161 const String& file =
"unknown",
int line = 0) :
162 Exception(message,
"CEGUI::GenericException", file, line)
183 #define GenericException(message) \
184 GenericException(message, __FILE__, __LINE__)
214 const String& file =
"unknown",
int line = 0) :
215 Exception(message,
"CEGUI::UnknownObjectException", file, line)
236 #define UnknownObjectException(message) \
237 UnknownObjectException(message, __FILE__, __LINE__)
267 const String& file =
"unknown",
int line = 0) :
268 Exception(message,
"CEGUI::InvalidRequestException", file, line)
289 #define InvalidRequestException(message) \
290 InvalidRequestException(message, __FILE__, __LINE__)
320 const String& file =
"unknown",
int line = 0) :
321 Exception(message,
"CEGUI::FileIOException", file, line)
342 #define FileIOException(message) \
343 FileIOException(message, __FILE__, __LINE__)
373 const String& file =
"unknown",
int line = 0) :
374 Exception(message,
"CEGUI::RendererException", file, line)
395 #define RendererException(message) \
396 RendererException(message, __FILE__, __LINE__)
431 const String& file =
"unknown",
int line = 0) :
432 Exception(message,
"CEGUI::AlreadyExistsException", file, line)
453 #define AlreadyExistsException(message) \
454 AlreadyExistsException(message, __FILE__, __LINE__)
484 const String& file =
"unknown",
int line = 0) :
485 Exception(message,
"CEGUI::MemoryException", file, line)
506 #define MemoryException(message) \
507 MemoryException(message, __FILE__, __LINE__)
537 const String& file =
"unknown",
int line = 0) :
538 Exception(message,
"CEGUI::NullObjectException", file, line)
559 #define NullObjectException(message) \
560 NullObjectException(message, __FILE__, __LINE__)
594 const String& file =
"unknown",
int line = 0) :
595 Exception(message,
"CEGUI::ObjectInUseException", file, line)
616 #define ObjectInUseException(message) \
617 ObjectInUseException(message, __FILE__, __LINE__)
647 const String& file =
"unknown",
int line = 0) :
648 Exception(message,
"CEGUI::ScriptException", file, line)
669 #define ScriptException(message) \
670 ScriptException(message, __FILE__, __LINE__)
678 #endif // end of guard _CEGUIExceptions_h_
Exception class used when a request was made for an unknown object.
Definition: CEGUIExceptions.h:189
Exception class used when none of the other classes are applicable.
Definition: CEGUIExceptions.h:136
UnknownObjectException(const String &message, const String &file="unknown", int line=0)
Constructor that is responsible for logging the unknown object exception by calling the base class...
Definition: CEGUIExceptions.h:213
NullObjectException(const String &message, const String &file="unknown", int line=0)
Constructor that is responsible for logging the null object exception by calling the base class...
Definition: CEGUIExceptions.h:536
Exception class used when an attempt is made create a named object of a particular type when an objec...
Definition: CEGUIExceptions.h:406
Exception class used when a file handling problem occurs.
Definition: CEGUIExceptions.h:295
Exception class used for problems in the rendering subsystem classes.
Definition: CEGUIExceptions.h:348
Exception class used when some required object or parameter is null.
Definition: CEGUIExceptions.h:512
GenericException(const String &message, const String &file="unknown", int line=0)
Constructor that is responsible for logging the generic exception by calling the base class...
Definition: CEGUIExceptions.h:160
RendererException(const String &message, const String &file="unknown", int line=0)
Constructor that is responsible for logging the renderer exception by calling the base class...
Definition: CEGUIExceptions.h:372
FileIOException(const String &message, const String &file="unknown", int line=0)
Constructor that is responsible for logging the file IO exception by calling the base class...
Definition: CEGUIExceptions.h:319
const String & getFileName(void) const
Return a reference to the String object containing the name of the file where the exception occurred...
Definition: CEGUIExceptions.h:79
AlreadyExistsException(const String &message, const String &file="unknown", int line=0)
Constructor that is responsible for logging the already exists exception by calling the base class...
Definition: CEGUIExceptions.h:430
const String & getName() const
Return a reference to the String object containing the exception name (i.e. class type)...
Definition: CEGUIExceptions.h:67
int getLine(void) const
Return the line number where the exception occurred.
Definition: CEGUIExceptions.h:89
ObjectInUseException(const String &message, const String &file="unknown", int line=0)
Constructor that is responsible for logging the object in use exception by calling the base class...
Definition: CEGUIExceptions.h:593
ScriptException(const String &message, const String &file="unknown", int line=0)
Constructor that is responsible for logging the script exception by calling the base class...
Definition: CEGUIExceptions.h:646
MemoryException(const String &message, const String &file="unknown", int line=0)
Constructor that is responsible for logging the memory exception by calling the base class...
Definition: CEGUIExceptions.h:483
const String & getMessage(void) const
Return a reference to the String object describing the reason for the exception being thrown...
Definition: CEGUIExceptions.h:56
Root exception class used within the GUI system.
Definition: CEGUIExceptions.h:41
Exception class used when some attempt to delete, remove, or otherwise invalidate some object that is...
Definition: CEGUIExceptions.h:569
Exception class used when a memory handling error is detected.
Definition: CEGUIExceptions.h:459
Exception class used when some impossible request was made of the system.
Definition: CEGUIExceptions.h:242
InvalidRequestException(const String &message, const String &file="unknown", int line=0)
Constructor that is responsible for logging the invalid request exception by calling the base class...
Definition: CEGUIExceptions.h:266
String class used within the GUI system.
Definition: CEGUIString.h:57
Exception class used for issues in scripting subsystem.
Definition: CEGUIExceptions.h:622