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...

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:77
errorManip< error > abort(error &err)
Definition: errorManip.H:144
errorManipArg< error, int > exit(error &err, const int errNo=1)
Definition: errorManip.H:130

Definition at line 70 of file errorManip.H.

Constructor & Destructor Documentation

◆ errorManip()

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

Definition at line 77 of file errorManip.H.

Friends And Related Function Documentation

◆ operator

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

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