Public Member Functions | |
IOerror (const string &title) | |
IOerror (const dictionary &errDict) | |
virtual | ~IOerror () noexcept |
const string & | ioFileName () const noexcept |
label | ioStartLineNumber () const noexcept |
label | ioEndLineNumber () const noexcept |
OSstream & | operator() (const char *functionName, const char *sourceFileName, const int sourceFileLineNumber, const string &ioFileName, const label ioStartLineNumber=-1, const label ioEndLineNumber=-1) |
OSstream & | operator() (const char *functionName, const char *sourceFileName, const int sourceFileLineNumber, const IOstream &ioStream) |
OSstream & | operator() (const char *functionName, const char *sourceFileName, const int sourceFileLineNumber, const dictionary &dict) |
OSstream & | operator() (const std::string &where, const IOstream &ioStream) |
OSstream & | operator() (const std::string &where, const dictionary &dict) |
operator dictionary () const | |
void | exit (const int errNo=1) |
void | abort () |
virtual void | write (Ostream &os, const bool withTitle=true) const |
![]() | |
error (const string &title) | |
error (const dictionary &errDict) | |
error (const error &err) | |
virtual | ~error () noexcept |
string | message () const |
void | clear () const |
const string & | functionName () const noexcept |
const string & | sourceFileName () const noexcept |
label | sourceFileLineNumber () const noexcept |
bool | throwing () const noexcept |
bool | throwing (const bool on) noexcept |
OSstream & | stream () |
operator OSstream & () | |
OSstream & | operator() () |
OSstream & | operator() (const string &functionName) |
OSstream & | operator() (const char *functionName, const char *sourceFileName, const int sourceFileLineNumber=0) |
OSstream & | operator() (const string &functionName, const char *sourceFileName, const int sourceFileLineNumber=0) |
operator dictionary () const | |
void | exit (const int errNo=1) |
void | abort () |
bool | throwExceptions (const bool on=true) noexcept |
bool | dontThrowExceptions () noexcept |
Static Public Member Functions | |
static void | SafeFatalIOError (const char *functionName, const char *sourceFileName, const int sourceFileLineNumber, const IOstream &ioStream, const string &msg) |
![]() | |
static bool | master (const label communicator=-1) |
static bool | warnAboutAge (const int version) noexcept |
static bool | warnAboutAge (const char *what, const int version) |
static void | safePrintStack (std::ostream &os) |
static void | printStack (Ostream &os) |
static bool | useAbort () |
Additional Inherited Members | |
![]() | |
void | simpleExit (const int errNo, const bool isAbort) |
![]() | |
string | functionName_ |
string | sourceFileName_ |
label | sourceFileLineNumber_ |
bool | throwing_ |
std::unique_ptr< OStringStream > | messageStreamPtr_ |
|
explicit |
Foam::OSstream & operator() | ( | const char * | functionName, |
const char * | sourceFileName, | ||
const int | sourceFileLineNumber, | ||
const string & | ioFileName, | ||
const label | ioStartLineNumber = -1 , |
||
const label | ioEndLineNumber = -1 |
||
) |
Foam::OSstream & operator() | ( | const char * | functionName, |
const char * | sourceFileName, | ||
const int | sourceFileLineNumber, | ||
const IOstream & | ioStream | ||
) |
Foam::OSstream & operator() | ( | const char * | functionName, |
const char * | sourceFileName, | ||
const int | sourceFileLineNumber, | ||
const dictionary & | dict | ||
) |
Definition at line 103 of file IOerror.C.
References dict, dictionary::endLineNumber(), dictionary::relativeName(), and dictionary::startLineNumber().
Foam::OSstream & operator() | ( | const std::string & | where, |
const IOstream & | ioStream | ||
) |
Foam::OSstream & operator() | ( | const std::string & | where, |
const dictionary & | dict | ||
) |
Definition at line 141 of file IOerror.C.
References dict, dictionary::endLineNumber(), dictionary::relativeName(), and dictionary::startLineNumber().
|
static |
Definition at line 159 of file IOerror.C.
References JobInfo::constructed, Foam::endl(), Foam::exit(), Foam::FatalIOError, IOstream::lineNumber(), Foam::nl, and IOstream::relativeName().
operator dictionary | ( | ) | const |
void exit | ( | const int | errNo = 1 | ) |
Definition at line 236 of file IOerror.C.
Referenced by Foam::exit(), IFstream::operator()(), and Istream::operator()().
void abort | ( | ) |
Definition at line 242 of file IOerror.C.
Referenced by Foam::abort().
Reimplemented from error.
Definition at line 248 of file IOerror.C.
References Foam::foamVersion::api, IOstream::bad(), messageStream::level, Foam::nl, os(), Foam::foamVersion::patch, and Foam::foamVersion::patched().
Referenced by Foam::operator<<().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.