Loading...
Searching...
No Matches
errorManip< Err > Class Template Reference

Error stream manipulators for exit and abort which may terminate the program or throw an exception depending if the exception handling has been switched on (off by default). More...

#include <errorManip.H>

Public Member Functions

 errorManip (void(Err::*fPtr)(), Err &t)

Friends

Ostreamoperator<< (Ostream &os, errorManip< Err > m)

Detailed Description

template<class Err>
class Foam::errorManip< Err >

Error stream manipulators for exit and abort which may terminate the program or throw an exception depending if the exception handling has been switched on (off by default).

Usage
error << "message " << someType << abort(error);
error << "message " << someType << exit(error, errNo);
Class to handle errors and exceptions in a simple, consistent stream-based manner.
Definition error.H:74
errorManip< error > abort(error &err)
Definition errorManip.H:139
errorManipArg< error, int > exit(error &err, const int errNo=1)
Definition errorManip.H:125

Definition at line 65 of file errorManip.H.

Constructor & Destructor Documentation

◆ errorManip()

template<class Err>
errorManip ( void(Err::* fPtr )(),
Err & t )
inline

Definition at line 72 of file errorManip.H.

Referenced by operator<<.

Here is the caller graph for this function:

◆ operator<<

template<class Err>
Ostream & operator<< ( Ostream & os,
errorManip< Err > m )
friend

Definition at line 83 of file errorManip.H.

References errorManip(), and os().


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