MAST3
Multidisciplinary-design Adaptation and Sensitivity Toolkit (MAST)
exceptions.hpp File Reference
#include <iostream>
#include <string>
Include dependency graph for exceptions.hpp:

Go to the source code of this file.

Classes

class  MAST::Exceptions::Exception1< Val1Type >
 
class  MAST::Exceptions::Exception2< Val1Type, Val2Type >
 
class  MAST::Exceptions::ExceptionBase
 

Namespaces

 MAST
 
 MAST::Exceptions
 

Macros

#define Assert0(cond, msg)
 
#define Assert1(cond, v1, msg)
 
#define Assert2(cond, v1, v2, msg)
 
#define Error(cond, msg)
 

Macro Definition Documentation

◆ Assert0

#define Assert0 (   cond,
  msg 
)
Value:
if (!(cond)) \
MAST::Exceptions::ExceptionBase \
(#cond, \
" ", \
msg, \
__FILE__, \
__LINE__).throw_error() \

Definition at line 134 of file exceptions.hpp.

◆ Assert1

#define Assert1 (   cond,
  v1,
  msg 
)
Value:
if (!(cond)) \
MAST::Exceptions::Exception1<decltype(v1)> \
(v1, \
#cond, \
msg, \
__FILE__, \
__LINE__).throw_error() \

Definition at line 143 of file exceptions.hpp.

◆ Assert2

#define Assert2 (   cond,
  v1,
  v2,
  msg 
)
Value:
if (!(cond)) \
MAST::Exceptions::Exception2<decltype(v1), decltype(v2)> \
(v1, \
v2, \
#cond, \
msg, \
__FILE__, \
__LINE__).throw_error() \

Definition at line 152 of file exceptions.hpp.

◆ Error

#define Error (   cond,
  msg 
)
Value:
if (!(cond)) \
MAST::Exceptions::ExceptionBase( \
#cond, \
" ", \
msg, \
__FILE__, \
__LINE__).throw_error() \

Definition at line 166 of file exceptions.hpp.