|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Custom exception classes with source location tracking. More...
Go to the source code of this file.
Classes | |
| struct | AlephException |
| Aleph exception class. More... | |
| struct | MinMaxReversed |
| struct | InvalidCsvHeader |
| struct | InvalidCsvRow |
| struct | InvalidValue |
| struct | OutOfMemory |
| struct | OutOfRange |
| struct | ValueNotFound |
| struct | CommandLineError |
| struct | InvariantError |
| struct | SizeMismatch |
| struct | InvalidConversion |
| struct | NameNotFound |
| struct | InvalidSize |
| struct | InvalidRange |
| struct | InvalidUnit |
| struct | DuplicatedOperation |
| struct | DuplicatedName |
| struct | InvalidRead |
| struct | FileNotFound |
Macros | |
| #define | DEFINE_ALEPH_EXCEPTION(name, category_msg) |
| Define a new exception. | |
| #define | ALEPHTHROW(type, msg) throw type(__LINE__, __FILE__, #type, msg) |
| Macro for throwing an aleph exception. | |
Custom exception classes with source location tracking.
This file provides AlephException, a custom exception class that captures file name, line number, and function name where the exception was thrown.
line_number: Line where exception was thrownfile_name: Source file namefunction_name: Function where thrownUse the DEFINE_ALEPH_EXCEPTION macro:
For new code, prefer using ah-errors.H macros which provide automatic source location capture:
Definition in file aleph-exceptions.H.
| #define ALEPHTHROW | ( | type, | |
| msg | |||
| ) | throw type(__LINE__, __FILE__, #type, msg) |
Macro for throwing an aleph exception.
| [in] | type | aleph exception class name |
| [in] | msg | message describing the error |
Definition at line 162 of file aleph-exceptions.H.
| #define DEFINE_ALEPH_EXCEPTION | ( | name, | |
| category_msg | |||
| ) |
Define a new exception.
| [in] | name | of the exception |
| [in] | category_msg |
Definition at line 145 of file aleph-exceptions.H.