60 template<
class Err>
Ostream& operator<<(Ostream&, errorManip<Err>);
63 template<
class Err,
class T>
64 Ostream& operator<<(Ostream&, errorManipArg<Err, T>);
85 friend Ostream& operator<< <Err>(Ostream&
os, errorManip<Err> m);
90 inline Ostream& operator<<(Ostream& os, errorManip<Err> m)
101 template<
class Err,
class T>
104 void (Err::*fPtr_)(
const T);
117 friend Ostream& operator<< <Err, T>(Ostream&
os, errorManipArg<Err, T> m);
121 template<
class Err,
class T>
122 inline Ostream& operator<<(Ostream& os, errorManipArg<Err, T> m)
124 (m.err_.*m.fPtr_)(m.arg_);
131 inline errorManipArg<error, int>
138 inline errorManipArg<IOerror, int>
145 inline errorManip<error>
152 inline errorManip<IOerror>
errorManipArg< error, int > exit(error &err, const int errNo=1)
void abort()
Abort : used to stop code for fatal errors.
Error stream manipulators for functions with an argument.
errorManip(void(Err::*fPtr)(), Err &t)
void exit(const int errNo=1)
Exit : can be called for any error to exit program.
Class to handle errors and exceptions in a simple, consistent stream-based manner.
errorManipArg(void(Err::*fPtr)(const T), Err &t, const T i)
void abort()
Abort : used to stop code for fatal errors.
errorManip< error > abort(error &err)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
void exit(const int errNo=1)
Exit : can be called for any error to exit program.
OBJstream os(runTime.globalPath()/outputName)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
Error stream manipulators for exit and abort which may terminate the program or throw an exception de...