Class documentation of Concepts

Loading...
Searching...
No Matches
exceptions.hh File Reference
#include <exception>
#include <iostream>
#include <string>
#include <cstdlib>
#include <sstream>
#include <new>
#include "outputOperator.hh"

Go to the source code of this file.

Classes

class  concepts::Stacktrace
 
class  concepts::ExceptionBase
 
class  concepts::DimensionMismatch
 
class  concepts::WrongInputException
 
class  concepts::IndexNotExisting
 
class  concepts::MissingFeature
 
class  concepts::Assertion
 

Namespaces

namespace  concepts
 

Macros

#define __PRETTY_FUNCTION__   "(unknown)"
 
#define conceptsException(exc)
 
#define CONCEPTS_SIMPLE_EXC(msg)
 
#define conceptsAssert(cond, exc)   { }
 
#define conceptsThrowSimpleE(msg)
 
#define conceptsAssert3(cond, exc, msg)   { }
 

Functions

template<class exc >
exc concepts::exception_set_fields (exc e, const std::string &file, const unsigned int line, const std::string &function, const std::string &excName)
 
template<class exc >
void concepts::exception_throw_assert (const std::string &file, int line, const std::string &function, const std::string &exc_name, const std::string &cond, exc e)
 

Detailed Description

Exception classes file

Assert: an exeption should be thrown with information about: file, line, function, violated condition, exception name. This exception can be handled in the main program.

Definition in file exceptions.hh.

Macro Definition Documentation

◆ __PRETTY_FUNCTION__

#define __PRETTY_FUNCTION__   "(unknown)"

Definition at line 296 of file exceptions.hh.

◆ CONCEPTS_SIMPLE_EXC

#define CONCEPTS_SIMPLE_EXC (   msg)
Value:
exception_set_fields(ExceptionBase(), std::string(__FILE__), __LINE__, \
std::string(__PRETTY_FUNCTION__), std::string(msg))

Definition at line 348 of file exceptions.hh.

◆ conceptsException

#define conceptsException (   exc)
Value:
exception_set_fields(exc, std::string(__FILE__), __LINE__, \
std::string(__PRETTY_FUNCTION__), std::string(#exc))

Prepares an exception for throwing. This is the main routine in the exception mechanism for production mode error checking. See the ExceptionBase class for more information.

Parameters
excException to be thrown
See also
ExceptionBase
Test:
test::ExceptionTest
Author
Philipp Frauenfelder, 2000
Examples
hpFEM2d.cc, and hpFEM3d-EV.cc.

Definition at line 344 of file exceptions.hh.