hpp-util 6.0.0
Debugging tools for the HPP project.
Loading...
Searching...
No Matches
hpp::ExceptionFactory< exception > Struct Template Reference

Class to ease exception creation. More...

#include <hpp/util/exception-factory.hh>

Public Member Functions

template<typename T >
internal::conditional_insertion_operator< exception, T >::type operator<< (const T &t)
 

Public Attributes

std::stringstream ss
 

Detailed Description

template<typename exception>
struct hpp::ExceptionFactory< exception >

Class to ease exception creation.

You can use equivalently

throw ::hpp::ExceptionFactory<std::runtime_error>() << "message" <<
Class to ease exception creation.
Definition exception-factory.hh:73

or

HPP_THROW(std::runtime_error>, "message" << variable);
#define HPP_THROW(TYPE, MSG)
Throw an exception of type using MSG as a string stream.
Definition exception-factory.hh:109

Member Function Documentation

◆ operator<<()

template<typename exception >
template<typename T >
internal::conditional_insertion_operator< exception, T >::type hpp::ExceptionFactory< exception >::operator<< ( const T t)
inline

Member Data Documentation

◆ ss

template<typename exception >
std::stringstream hpp::ExceptionFactory< exception >::ss

The documentation for this struct was generated from the following file: