70 public std::exception,
165 void exit(
const int errNo = 1);
195 label ioStartLineNumber_;
196 label ioEndLineNumber_;
216 return ioStartLineNumber_;
221 return ioEndLineNumber_;
271 void exit(
const int errNo = 1);
290 template <
class...
T>
291 constexpr
bool False =
false;
302 #define FatalErrorIn(functionName) \
303 ::Foam::FatalError((functionName), __FILE__, __LINE__)
307 #define FatalErrorInFunction FatalErrorIn(FUNCTION_NAME)
313 #define FatalIOErrorIn(functionName, ios) \
314 ::Foam::FatalIOError((functionName), __FILE__, __LINE__, (ios))
319 #define FatalIOErrorInFunction(ios) FatalIOErrorIn(FUNCTION_NAME, ios)
326 #define SafeFatalIOErrorIn(functionName, ios, msg) \
327 ::Foam::IOerror::SafeFatalIOError \
328 ((functionName), __FILE__, __LINE__, (ios), (msg))
334 #define SafeFatalIOErrorInFunction(ios, msg) \
335 SafeFatalIOErrorIn(FUNCTION_NAME, ios, msg)
344 #define notImplemented(functionName) \
345 FatalErrorIn(functionName) \
346 << "Not implemented" << ::Foam::abort(::Foam::FatalError);
354 #define NotImplemented notImplemented(FUNCTION_NAME)
const string & ioFileName() const
static void SafeFatalIOError(const char *functionName, const char *sourceFileName, const int sourceFileLineNumber, const IOstream &, const string &msg)
Print basic message and exit. Uses cerr if streams not constructed.
void exit(const int errNo=1)
Exit : can be called for any error to exit program.
label ioEndLineNumber() const
IOerror(const string &title)
Construct from title string.
label ioStartLineNumber() const
void abort()
Abort : used to stop code for fatal errors.
friend Ostream & operator<<(Ostream &, const IOerror &)
An IOstream is an abstract base class for all input/output systems; be they streams,...
Output to memory buffer stream.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keyword definitions, which are a keyword followed by any number of values (e....
Class to handle errors and exceptions in a simple, consistent stream-based manner.
const string & sourceFileName() const
label sourceFileLineNumber_
friend Ostream & operator<<(Ostream &, const error &)
OStringStream messageStream_
const string & functionName() const
static void printStack(Ostream &)
Helper function to print a stack.
void exit(const int errNo=1)
Exit : can be called for any error to exit program.
error(const string &title)
Construct from title string.
OSstream & operator()()
Explicitly convert to OSstream for << operations.
static void safePrintStack(std::ostream &)
Helper function to print a stack (if OpenFOAM IO not yet.
void abort()
Abort : used to stop code for fatal errors.
void dontThrowExceptions()
label sourceFileLineNumber() const
A functionName is a word starting with '#'.
Class to handle messaging in a simple, consistent stream-based manner.
const string & title() const
Return the title of this error type.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & operator<<(Ostream &, const ensightPart &)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)