29 #ifndef _CEGUIExceptions_h_ 30 #define _CEGUIExceptions_h_ 32 #include "CEGUI/Base.h" 33 #include "CEGUI/String.h" 37 # pragma warning(push) 38 # pragma warning(disable : 4275) 46 class CEGUIEXPORT Exception :
47 public std::exception,
48 public AllocatedObject<Exception>
52 virtual ~Exception(
void) throw();
87 {
return d_filename; }
109 {
return d_function; }
112 const char* what()
const throw();
126 static void setStdErrEnabled(
bool enabled);
135 static bool isStdErrEnabled();
139 static bool d_stdErrEnabled;
166 const String& name =
"CEGUI::Exception",
167 const String& filename =
"",
169 const String&
function =
"");
188 class CEGUIEXPORT GenericException :
public Exception 217 const String& file =
"unknown",
int line = 0,
218 const String&
function =
"unknown") :
219 Exception(message,
"CEGUI::GenericException", file, line, function)
240 #define GenericException(message) \ 241 GenericException(message, __FILE__, __LINE__, CEGUI_FUNCTION_NAME) 246 class CEGUIEXPORT UnknownObjectException :
public Exception 275 const String& file =
"unknown",
int line = 0,
276 const String&
function =
"unknown") :
277 Exception(message,
"CEGUI::UnknownObjectException", file, line, function)
298 #define UnknownObjectException(message) \ 299 UnknownObjectException(message, __FILE__, __LINE__, CEGUI_FUNCTION_NAME) 304 class CEGUIEXPORT InvalidRequestException :
public Exception 333 const String& file =
"unknown",
int line = 0,
334 const String&
function =
"unknown") :
335 Exception(message,
"CEGUI::InvalidRequestException", file, line, function)
356 #define InvalidRequestException(message) \ 357 InvalidRequestException(message, __FILE__, __LINE__, CEGUI_FUNCTION_NAME) 362 class CEGUIEXPORT FileIOException :
public Exception 391 const String& file =
"unknown",
int line = 0,
392 const String&
function =
"unknown") :
393 Exception(message,
"CEGUI::FileIOException", file, line, function)
414 #define FileIOException(message) \ 415 FileIOException(message, __FILE__, __LINE__, CEGUI_FUNCTION_NAME) 420 class CEGUIEXPORT RendererException :
public Exception 449 const String& file =
"unknown",
int line = 0,
450 const String&
function =
"unknown") :
451 Exception(message,
"CEGUI::RendererException", file, line, function)
472 #define RendererException(message) \ 473 ::CEGUI::RendererException(message, __FILE__, __LINE__, CEGUI_FUNCTION_NAME) 483 class CEGUIEXPORT AlreadyExistsException :
public Exception 512 const String& file =
"unknown",
int line = 0,
513 const String&
function =
"unknown") :
514 Exception(message,
"CEGUI::AlreadyExistsException", file, line, function)
535 #define AlreadyExistsException(message) \ 536 AlreadyExistsException(message, __FILE__, __LINE__, CEGUI_FUNCTION_NAME) 541 class CEGUIEXPORT MemoryException :
public Exception 570 const String& file =
"unknown",
int line = 0,
571 const String&
function =
"unknown") :
572 Exception(message,
"CEGUI::MemoryException", file, line, function)
593 #define MemoryException(message) \ 594 MemoryException(message, __FILE__, __LINE__, CEGUI_FUNCTION_NAME) 599 class CEGUIEXPORT NullObjectException :
public Exception 628 const String& file =
"unknown",
int line = 0,
629 const String&
function =
"unknown") :
630 Exception(message,
"CEGUI::NullObjectException", file, line, function)
651 #define NullObjectException(message) \ 652 NullObjectException(message, __FILE__, __LINE__, CEGUI_FUNCTION_NAME) 661 class CEGUIEXPORT ObjectInUseException :
public Exception 690 const String& file =
"unknown",
int line = 0,
691 const String&
function =
"unknown") :
692 Exception(message,
"CEGUI::ObjectInUseException", file, line, function)
713 #define ObjectInUseException(message) \ 714 ObjectInUseException(message, __FILE__, __LINE__, CEGUI_FUNCTION_NAME) 719 class CEGUIEXPORT ScriptException :
public Exception 748 const String& file =
"unknown",
int line = 0,
749 const String&
function =
"unknown") :
750 Exception(message,
"CEGUI::ScriptException", file, line, function)
771 #define ScriptException(message) \ 772 ScriptException(message, __FILE__, __LINE__, CEGUI_FUNCTION_NAME) 779 #if defined(_MSC_VER) 780 # pragma warning(pop) 783 #endif // end of guard _CEGUIExceptions_h_ ObjectInUseException(const String &message, const String &file="unknown", int line=0, const String &function="unknown")
Constructor that is responsible for logging the object in use exception by calling the base class...
Definition: debian/tmp/usr/include/cegui-0.8.5/CEGUI/Exceptions.h:689
Main namespace for Crazy Eddie's GUI Library.
Definition: cegui/include/CEGUI/Affector.h:42
ScriptException(const String &message, const String &file="unknown", int line=0, const String &function="unknown")
Constructor that is responsible for logging the script exception by calling the base class...
Definition: debian/tmp/usr/include/cegui-0.8.5/CEGUI/Exceptions.h:747
NullObjectException(const String &message, const String &file="unknown", int line=0, const String &function="unknown")
Constructor that is responsible for logging the null object exception by calling the base class...
Definition: debian/tmp/usr/include/cegui-0.8.5/CEGUI/Exceptions.h:627
const String & getFileName(void) const
Return a reference to the String object containing the name of the file where the exception occurred...
Definition: debian/tmp/usr/include/cegui-0.8.5/CEGUI/Exceptions.h:86
RendererException(const String &message, const String &file="unknown", int line=0, const String &function="unknown")
Constructor that is responsible for logging the renderer exception by calling the base class...
Definition: debian/tmp/usr/include/cegui-0.8.5/CEGUI/Exceptions.h:448
const String & getName() const
Return a reference to the String object containing the exception name (i.e. class type)...
Definition: debian/tmp/usr/include/cegui-0.8.5/CEGUI/Exceptions.h:74
int getLine(void) const
Return the line number where the exception occurred.
Definition: debian/tmp/usr/include/cegui-0.8.5/CEGUI/Exceptions.h:96
MemoryException(const String &message, const String &file="unknown", int line=0, const String &function="unknown")
Constructor that is responsible for logging the memory exception by calling the base class...
Definition: debian/tmp/usr/include/cegui-0.8.5/CEGUI/Exceptions.h:569
InvalidRequestException(const String &message, const String &file="unknown", int line=0, const String &function="unknown")
Constructor that is responsible for logging the invalid request exception by calling the base class...
Definition: debian/tmp/usr/include/cegui-0.8.5/CEGUI/Exceptions.h:332
UnknownObjectException(const String &message, const String &file="unknown", int line=0, const String &function="unknown")
Constructor that is responsible for logging the unknown object exception by calling the base class...
Definition: debian/tmp/usr/include/cegui-0.8.5/CEGUI/Exceptions.h:274
Root exception class used within the GUI system.
Definition: cegui/include/CEGUI/Exceptions.h:46
GenericException(const String &message, const String &file="unknown", int line=0, const String &function="unknown")
Constructor that is responsible for logging the generic exception by calling the base class...
Definition: debian/tmp/usr/include/cegui-0.8.5/CEGUI/Exceptions.h:216
const String & getFunctionName(void) const
Return a reference to the String object containing the name of the function where the exception occur...
Definition: debian/tmp/usr/include/cegui-0.8.5/CEGUI/Exceptions.h:108
FileIOException(const String &message, const String &file="unknown", int line=0, const String &function="unknown")
Constructor that is responsible for logging the file IO exception by calling the base class...
Definition: debian/tmp/usr/include/cegui-0.8.5/CEGUI/Exceptions.h:390
AlreadyExistsException(const String &message, const String &file="unknown", int line=0, const String &function="unknown")
Constructor that is responsible for logging the already exists exception by calling the base class...
Definition: debian/tmp/usr/include/cegui-0.8.5/CEGUI/Exceptions.h:511
String class used within the GUI system.
Definition: cegui/include/CEGUI/String.h:62