|
dune-common 2.11
|
Class for extending a Dune::Exception with a stream interface. More...
#include <dune/common/exceptions.hh>

Public Member Functions | |
| ExceptionStream (const E &other) | |
| ExceptionStream (E &&other) | |
Friends | |
| template<class T> requires (requires(std::ostringstream& oss, T t) { oss << t; } and not std::is_integral_v<T>) | |
| ExceptionStream & | operator<< (ExceptionStream &es, const T &t) |
| Stream operator for l-value ExceptionStream and lvalue-reference. | |
| template<class T> requires (requires(std::ostringstream& oss, T t) { oss << t; } and not std::is_integral_v<T>) | |
| ExceptionStream | operator<< (ExceptionStream &&es, const T &t) |
| Stream operator for r-value ExceptionStream and lvalue-reference. | |
| template<class T> requires std::is_integral_v<T> | |
| ExceptionStream & | operator<< (ExceptionStream &es, T t) |
| Stream operator for l-value ExceptionStream and integral values. | |
| template<class T> requires std::is_integral_v<T> | |
| ExceptionStream | operator<< (ExceptionStream &&es, T t) |
| Stream operator for r-value ExceptionStream and integral values. | |
| ExceptionStream & | operator<< (ExceptionStream &es, std::ostream &(*t)(std::ostream &)) |
| Stream operator for l-value ExceptionStream and io manipulator. | |
| ExceptionStream | operator<< (ExceptionStream &&es, std::ostream &(*t)(std::ostream &)) |
| Stream operator for r-value ExceptionStream and io manipulator. | |
Class for extending a Dune::Exception with a stream interface.
| E | Exception base class, should be derived from Dune::Exception. |
The class ExceptionStream<E> derives from E and extends it by an operator<<(ExceptionStream<T>,T). The latter is available whenever a corresponding operator<< for std::ostringstream is available. All values fed into the stream will be forwarded to the message stored E.