hpp-util  4.9.0
Debugging tools for the HPP project.
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" << variable << ::hpp::ThrowException();

or

HPP_THROW(std::runtime_error>, "message" << variable);

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: