70 public std::exception,
165 void exit(
const int errNo = 1);
195 label ioStartLineNumber_;
198 label ioEndLineNumber_;
238 return ioStartLineNumber_;
244 return ioEndLineNumber_;
299 void exit(
const int errNo = 1);
318 template <
class...
T>
319 constexpr
bool False =
false;
330 #define FatalErrorIn(functionName) \
331 ::Foam::FatalError((functionName), __FILE__, __LINE__)
335 #define FatalErrorInFunction FatalErrorIn(FUNCTION_NAME)
341 #define FatalIOErrorIn(functionName, ios) \
342 ::Foam::FatalIOError((functionName), __FILE__, __LINE__, (ios))
347 #define FatalIOErrorInFunction(ios) FatalIOErrorIn(FUNCTION_NAME, ios)
354 #define SafeFatalIOErrorIn(functionName, ios, msg) \
355 ::Foam::IOerror::SafeFatalIOError \
356 ((functionName), __FILE__, __LINE__, (ios), (msg))
362 #define SafeFatalIOErrorInFunction(ios, msg) \
363 SafeFatalIOErrorIn(FUNCTION_NAME, ios, msg)
372 #define notImplemented(functionName) \
373 FatalErrorIn(functionName) \
374 << "Not implemented" << ::Foam::abort(::Foam::FatalError);
382 #define NotImplemented notImplemented(FUNCTION_NAME)
const string & ioFileName() const
Access the file name.
IOerrorLocation()
Construct null.
label ioEndLineNumber() const
Access the end line number.
label ioStartLineNumber() const
Access the start line number.
bool ioGlobal() const
Assess to the global/local file switch.
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.
IOerror(const string &title)
Construct from title string.
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 &os, const fvConstraints &constraints)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)