TiledArray  0.7.0
error.h File Reference
#include <TiledArray/config.h>
#include <exception>
#include <iostream>
Include dependency graph for error.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  TiledArray::Exception
 

Namespaces

 TiledArray
 

Macros

#define TILEDARRAY_NO_EXCEPTION   throw()
 
#define TA_STRINGIZE(s)   #s
 
#define TA_EXCEPTION_MESSAGE(file, line, mess)   "TiledArray: exception at " file "(" TA_STRINGIZE( line ) "): " mess
 
#define TA_EXCEPTION(m)
 
#define TA_ASSERT(a)   { ; }
 
#define TA_TEST(a)   a
 
#define TA_CHECK(a)   if(! ( a ) ) TA_EXCEPTION( "check failure" )
 
#define TA_USER_ERROR_MESSAGE(m)   std::cerr << "!! ERROR TiledArray: " << m << "\n";
 
#define TA_USER_ASSERT(a, m)
 
#define DEPRECATED
 
#define DEPRECATEDMSG(msg)
 

Functions

void TiledArray::exception_break ()
 Place a break point on this function to stop before TiledArray exceptions are thrown. More...
 

Macro Definition Documentation

◆ DEPRECATED

#define DEPRECATED

Definition at line 148 of file error.h.

◆ DEPRECATEDMSG

#define DEPRECATEDMSG (   msg)

Definition at line 161 of file error.h.

◆ TA_ASSERT

#define TA_ASSERT (   a)    { ; }

Definition at line 107 of file error.h.

◆ TA_CHECK

#define TA_CHECK (   a)    if(! ( a ) ) TA_EXCEPTION( "check failure" )

Definition at line 112 of file error.h.

◆ TA_EXCEPTION

#define TA_EXCEPTION (   m)
Value:
{ \
throw TiledArray::Exception ( TA_EXCEPTION_MESSAGE( __FILE__ , __LINE__ , m ) ); \
}
#define TA_EXCEPTION_MESSAGE(file, line, mess)
Definition: error.h:69
void exception_break()
Place a break point on this function to stop before TiledArray exceptions are thrown.
Definition: error.h:63

Definition at line 72 of file error.h.

◆ TA_EXCEPTION_MESSAGE

#define TA_EXCEPTION_MESSAGE (   file,
  line,
  mess 
)    "TiledArray: exception at " file "(" TA_STRINGIZE( line ) "): " mess

Definition at line 69 of file error.h.

◆ TA_STRINGIZE

#define TA_STRINGIZE (   s)    #s

Definition at line 67 of file error.h.

◆ TA_TEST

#define TA_TEST (   a)    a

Definition at line 108 of file error.h.

◆ TA_USER_ASSERT

#define TA_USER_ASSERT (   a,
 
)
Value:
if(! ( a ) ) \
{ \
TA_USER_ERROR_MESSAGE( m ) \
throw TiledArray::Exception( m ); \
}
void exception_break()
Place a break point on this function to stop before TiledArray exceptions are thrown.
Definition: error.h:63

Definition at line 123 of file error.h.

◆ TA_USER_ERROR_MESSAGE

#define TA_USER_ERROR_MESSAGE (   m)    std::cerr << "!! ERROR TiledArray: " << m << "\n";

Definition at line 118 of file error.h.

◆ TILEDARRAY_NO_EXCEPTION

#define TILEDARRAY_NO_EXCEPTION   throw()

Definition at line 46 of file error.h.