|
jaffarCommon
|
Contains common functions for exception throwing. More...


Go to the source code of this file.
Macros | |
| #define | JAFFAR_THROW_RUNTIME(...) jaffarCommon::exceptions::throwException("Runtime", __FILE__, __LINE__, __VA_ARGS__) |
| #define | JAFFAR_THROW_LOGIC(...) jaffarCommon::exceptions::throwException("Logic", __FILE__, __LINE__, __VA_ARGS__) |
Functions | |
| __JAFFAR_COMMON__INLINE__ void | jaffarCommon::exceptions::throwException (const char *exceptionType, const char *fileName, const int lineNumber, const char *format,...) |
Contains common functions for exception throwing.
| #define JAFFAR_THROW_LOGIC | ( | ... | ) | jaffarCommon::exceptions::throwException("Logic", __FILE__, __LINE__, __VA_ARGS__) |
Macro for throwing logic exceptions. It includes the file, line and a C-formatted string
| #define JAFFAR_THROW_RUNTIME | ( | ... | ) | jaffarCommon::exceptions::throwException("Runtime", __FILE__, __LINE__, __VA_ARGS__) |
Macro for throwing runtime exceptions. It includes the file, line and a C-formatted string
| __JAFFAR_COMMON__INLINE__ void jaffarCommon::exceptions::throwException | ( | const char * | exceptionType, |
| const char * | fileName, | ||
| const int | lineNumber, | ||
| const char * | format, | ||
| ... | |||
| ) |
Common function for throwing exceptions.
| [in] | exceptionType | The type of exception to launch (e.g., "Logic", "Runtime") |
| [in] | fileName | The file in which the exception was originall thrown |
| [in] | lineNumber | The line inside the file where the exception was originall thrown |
| [in] | format | A constant formatted string |
| [in] | ... | parameters for the formatted string |