Code_TYMPAN  4.4.0
Industrial site acoustic simulation
Classes | Namespaces | Macros | Functions
exceptions.h File Reference

Utilities to handle exceptions and to pretty-print value. More...

#include <string>
#include <sstream>
#include <cassert>
#include <exception>
#include <deque>
#include <boost/exception/all.hpp>
#include <boost/current_function.hpp>
#include <boost/throw_exception.hpp>
#include <boost/config.hpp>
Include dependency graph for exceptions.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  tympan::exception
 The base exception class for all exceptions specific to Code_TYMPAN. More...
 
struct  tympan::logic_error
 The base exception class for internal logic / algorithmic errors. More...
 
struct  tympan::invalid_data
 The base exception class for errors due to invalid data. More...
 

Namespaces

 tympan
 

Macros

#define tympan_source_loc
 This macro build a source_loc object to be attached to a tympan::Exception. More...
 

Functions

template<typename T >
std::string tympan_to_string (const T &o)
 

Detailed Description

Utilities to handle exceptions and to pretty-print value.

Author
Anthony Truchet antho.nosp@m.ny.t.nosp@m.ruche.nosp@m.t@lo.nosp@m.gilab.nosp@m..fr

Definition in file exceptions.h.

Macro Definition Documentation

◆ tympan_source_loc

#define tympan_source_loc
Value:
::boost::throw_function(BOOST_CURRENT_FUNCTION) \
<< ::boost::throw_file(__FILE__) << ::boost::throw_line((int)__LINE__)

This macro build a source_loc object to be attached to a tympan::Exception.

Definition at line 76 of file exceptions.h.

Function Documentation

◆ tympan_to_string()

template<typename T >
std::string tympan_to_string ( const T &  o)

Definition at line 32 of file exceptions.h.