Mjolnir Core
Core functionality of the Mjolnir API
Classes | Macros
exception.h File Reference

Contains the definitions of various exception types and some macros for simple usage. More...

#include <cstring>
#include <stdexcept>
Include dependency graph for exception.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  AllocationError
 Exception class for failed memory allocations. More...
 
class  Exception
 Base exception class that stores origin and message of an exception. More...
 
class  RuntimeError
 Exception class for errors that do not fit into any other category. More...
 
class  ValueError
 Exception class that should be throwm if an invalid value is detected. More...
 

Macros

#define THROW_EXCEPTION(exception_type, message)   throw exception_type(FUNCTION_SIG, message)
 Throw an exception and automatically add the function that caused it. More...
 
#define THROW_EXCEPTION_IF(condition, exception_type, message)
 Throw an exception if the passed condition is met. More...
 

Detailed Description

Contains the definitions of various exception types and some macros for simple usage.

exception.h