deal_II_exceptions::internals Namespace Reference
[Exceptions and assertions]

Functions

void issue_error_assert (const char *file, int line, const char *function, const char *cond, const char *exc_name, ExceptionBase &e)
template<class exc >
void issue_error_throw (const char *file, int line, const char *function, const char *cond, const char *exc_name, exc e)
template<class exc >
void issue_error_assert_1 (const char *file, int line, const char *function, const char *cond, const char *exc_name, exc e)
void abort ()

Detailed Description

The functions in this namespace are in connection with the Assert and AssertThrow mechanism but are solely for internal purposes and are not for use outside the exception handling and throwing mechanism.


Function Documentation

void deal_II_exceptions::internals::issue_error_assert ( const char *  file,
int  line,
const char *  function,
const char *  cond,
const char *  exc_name,
ExceptionBase e 
)

This routine does the main work for the exception generation mechanism used in the Assert macro.

ExceptionBase

Referenced by issue_error_assert_1().

template<class exc >
void deal_II_exceptions::internals::issue_error_throw ( const char *  file,
int  line,
const char *  function,
const char *  cond,
const char *  exc_name,
exc  e 
) [inline]

This routine does the main work for the exception generation mechanism used in the AssertThrow macro.

ExceptionBase

template<class exc >
void deal_II_exceptions::internals::issue_error_assert_1 ( const char *  file,
int  line,
const char *  function,
const char *  cond,
const char *  exc_name,
exc  e 
) [inline]

Relay exceptions from the Assert macro to the __IssueError_Assert function. Used to convert the last argument from arbitrary type to ExceptionBase which is not possible inside the Assert macro due to syntactical difficulties in connection with the way we use the macro and the declaration of the exception classes.

ExceptionBase

References issue_error_assert().

void deal_II_exceptions::internals::abort (  ) 

Abort the program. This function is used so that we need not include cstdlib into this file since it is included into all other files of the library and we would like to keep its include list as short as possible.


deal.II documentation generated on Mon Nov 23 22:58:18 2009 by doxygen 1.6.1