OpenLexocad  27.0
Exception.h File Reference
#include <Base/base_defines.h>
#include <exception>
#include <string>

Go to the source code of this file.

Classes

class  Base::Exception
 
class  Base::AbortException
 
class  Base::MemoryException
 
class  Base::ConstructionError
 
class  Base::FailedNotDone
 
class  Base::ItemNotFound
 
class  Base::OutOfRange
 
class  Base::NotaNumber
 
class  Base::FileException
 
class  Base::VectorWithNullMagnitude
 
class  Base::BadArguments
 
class  Base::GuidInUseException
 

Namespaces

 Base
 

Macros

#define THROW_CON_ERR_IF(_condition_, _msg_)
 
#define THROW_FAIL_NDONE_IF(_condition_, _msg_)
 
#define OutOfRange_Raise_if(CONDITION, MESSAGE)
 
#define ConstructionError_Raise_if(CONDITION, MESSAGE)
 
#define VectorWithNullMagnitude_Raise_if(CONDITION, MESSAGE)
 
#define NotaNumber_if(CONDITION, MESSAGE)
 

Macro Definition Documentation

◆ ConstructionError_Raise_if

#define ConstructionError_Raise_if (   CONDITION,
  MESSAGE 
)
Value:
if (CONDITION) \
throw Base::ConstructionError(MESSAGE);
Definition: Exception.h:92

◆ NotaNumber_if

#define NotaNumber_if (   CONDITION,
  MESSAGE 
)
Value:
if (CONDITION) \
throw Base::NotaNumber(MESSAGE);
Definition: Exception.h:164

◆ OutOfRange_Raise_if

#define OutOfRange_Raise_if (   CONDITION,
  MESSAGE 
)
Value:
if (CONDITION) \
throw Base::OutOfRange(MESSAGE);
Definition: Exception.h:146

◆ THROW_CON_ERR_IF

#define THROW_CON_ERR_IF (   _condition_,
  _msg_ 
)
Value:
if (_condition_) \
Definition: Exception.h:92

◆ THROW_FAIL_NDONE_IF

#define THROW_FAIL_NDONE_IF (   _condition_,
  _msg_ 
)
Value:
if (_condition_) \
throw Base::FailedNotDone(_msg_);
Definition: Exception.h:110

◆ VectorWithNullMagnitude_Raise_if

#define VectorWithNullMagnitude_Raise_if (   CONDITION,
  MESSAGE 
)
Value:
if (CONDITION) \
Definition: Exception.h:200