|
NSUNI/NSLAR Library a250670
|
Defines the library-wide exception hierarchy and error handling macros. More...
Classes | |
| class | nnl::Exception |
| Base exception class for the library specific exceptions. More... | |
| class | nnl::RuntimeError |
| Exception thrown for generic runtime errors. More... | |
| class | nnl::ParseError |
| Exception thrown for parsing errors. More... | |
| class | nnl::PreconditionError |
| Exception thrown when a contract precondition is violated. More... | |
| class | nnl::RangeError |
| Exception thrown for out-of-range errors. More... | |
| class | nnl::NarrowError |
| Exception thrown for narrowing conversion errors. More... | |
| class | nnl::IOError |
| Exception thrown for I/O like operations. More... | |
Macros | |
| #define | NNL_THROW(object) |
| Throws an exception or terminates the program if exceptions are disabled. | |
| #define | NNL_TRY if (true) |
| Expands to a try statement; or a dummy if statement when exceptions are disabled. | |
| #define | NNL_CATCH(type) |
| Expands to a catch statement; or a dummy if statement when exceptions are disabled. | |
Defines the library-wide exception hierarchy and error handling macros.
| class nnl::Exception |
Base exception class for the library specific exceptions.
Inherited by nnl::IOError, nnl::NarrowError, nnl::ParseError, nnl::PreconditionError, nnl::RangeError, and nnl::RuntimeError.
| class nnl::RuntimeError |
Exception thrown for generic runtime errors.
Inherits nnl::Exception.
| class nnl::ParseError |
Exception thrown for parsing errors.
Inherits nnl::Exception.
| class nnl::PreconditionError |
Exception thrown when a contract precondition is violated.
NNL_THROW_ON_CONTRACT_VIOLATION CMake option is enabled. Otherwise, contract violations are fatal.Inherits nnl::Exception.
| class nnl::RangeError |
Exception thrown for out-of-range errors.
Inherits nnl::Exception.
| class nnl::NarrowError |
Exception thrown for narrowing conversion errors.
Inherits nnl::Exception.
| class nnl::IOError |
Exception thrown for I/O like operations.
Inherits nnl::Exception.
| #define NNL_CATCH | ( | type | ) |
Expands to a catch statement; or a dummy if statement when exceptions are disabled.
| type | The unqualified non-pointer type to catch |
| #define NNL_THROW | ( | object | ) |
Throws an exception or terminates the program if exceptions are disabled.
| object | The exception object to be thrown |
| #define NNL_TRY if (true) |
Expands to a try statement; or a dummy if statement when exceptions are disabled.