Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::ExceptionBuilder< E > Struct Template Reference

Exception constructor with formatted message. More...

#include <ah-errors.H>

Public Member Functions

int operator, (const std::ostream &s)
 Comma operator that throws the exception with the constructed message.
 

Detailed Description

template<class E>
struct Aleph::ExceptionBuilder< E >

Exception constructor with formatted message.

This helper class allows building exceptions with formatted messages using the stream insertion operator (<<). Used internally by the error handling macros.

Template Parameters
EException type to throw (must derive from std::exception) *

Definition at line 106 of file ah-errors.H.

Member Function Documentation

◆ operator,()

template<class E >
int Aleph::ExceptionBuilder< E >::operator, ( const std::ostream &  s)
inline

Comma operator that throws the exception with the constructed message.

Parameters
sStream with the formatted error message
Returns
Does not return (throws exception)
Exceptions
EException of the specified type with the constructed message *

Definition at line 116 of file ah-errors.H.


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