NSUNI/NSLAR Library a250670
Loading...
Searching...
No Matches
exception.hpp File Reference

Defines the library-wide exception hierarchy and error handling macros. More...

#include <string>
#include "NNL/common/src_info.hpp"
#include "NNL/common/panic.hpp"

Go to the source code of this file.

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...

Namespaces

namespace  nnl

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.

Detailed Description

Defines the library-wide exception hierarchy and error handling macros.