hpp-util 6.0.0
Debugging tools for the HPP project.
Loading...
Searching...
No Matches
exception-factory.hh File Reference
#include <hpp/util/config.hh>
#include <sstream>
Include dependency graph for exception-factory.hh:

Go to the source code of this file.

Classes

struct  hpp::ExceptionFactory< exception >
 Class to ease exception creation. More...
 

Namespaces

namespace  hpp
 

Macros

#define HPP_THROW(TYPE, MSG)    throw ::hpp::ExceptionFactory<TYPE>() << MSG << ::hpp::ThrowException()
 Throw an exception of type using MSG as a string stream.
 
#define HPP_THROW_WITH_LINEINFO(TYPE, MSG)    HPP_THROW(TYPE, MSG << " at " << __FILE__ << ":" << __LINE__)
 Throw an exception of type using MSG as a string stream.