OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

IOerror Class Reference

Report an I/O error. More...

Inheritance diagram for IOerror:
Collaboration diagram for IOerror:

List of all members.


Public Member Functions

 IOerror (const string &title)
 Construct from title string.
 IOerror (const dictionary &errDict)
 Construct from dictionary.
virtual ~IOerror () throw ()
const stringioFileName () const
label ioStartLineNumber () const
label ioEndLineNumber () const
OSstreamoperator() (const char *functionName, const char *sourceFileName, const int sourceFileLineNumber, const string &ioFileName, const label ioStartLineNumber=-1, const label ioEndLineNumber=-1)
 Convert to Ostream.
OSstreamoperator() (const char *functionName, const char *sourceFileName, const int sourceFileLineNumber, const IOstream &)
 Convert to Ostream.
OSstreamoperator() (const char *functionName, const char *sourceFileName, const int sourceFileLineNumber, const dictionary &)
 Convert to Ostream.
 operator dictionary () const
 Create and return a dictionary.
void exit (const int errNo=1)
 Exit : can be called for any error to exit program.
void abort ()
 Abort : used to stop code for fatal errors.

Friends

Ostreamoperator<< (Ostream &, const IOerror &)

Detailed Description

Report an I/O error.

Definition at line 197 of file error.H.


Constructor & Destructor Documentation

IOerror ( const string title  ) 

Construct from title string.

Definition at line 27 of file IOerror.C.

IOerror ( const dictionary errDict  ) 

Construct from dictionary.

Definition at line 36 of file IOerror.C.

~IOerror (  )  throw () [virtual]

Definition at line 45 of file IOerror.C.


Member Function Documentation

const string& ioFileName (  )  const [inline]

Definition at line 226 of file error.H.

label ioStartLineNumber (  )  const [inline]

Definition at line 231 of file error.H.

label ioEndLineNumber (  )  const [inline]

Definition at line 236 of file error.H.

Foam::OSstream & operator() ( const char *  functionName,
const char *  sourceFileName,
const int  sourceFileLineNumber,
const string ioFileName,
const label  ioStartLineNumber = -1,
const label  ioEndLineNumber = -1 
)

Convert to Ostream.

Prints basic message and then returns Ostream for further info.

Reimplemented from messageStream.

Definition at line 50 of file IOerror.C.

Foam::OSstream & operator() ( const char *  functionName,
const char *  sourceFileName,
const int  sourceFileLineNumber,
const IOstream ioStream 
)

Convert to Ostream.

Prints basic message and then returns Ostream for further info.

Reimplemented from messageStream.

Definition at line 69 of file IOerror.C.

Foam::OSstream & operator() ( const char *  functionName,
const char *  sourceFileName,
const int  sourceFileLineNumber,
const dictionary dict 
)

Convert to Ostream.

Prints basic message and then returns Ostream for further info.

Reimplemented from messageStream.

Definition at line 89 of file IOerror.C.

operator dictionary (  )  const

Create and return a dictionary.

Reimplemented from error.

void exit ( const int  errNo = 1  ) 

Exit : can be called for any error to exit program.

Reimplemented from error.

Definition at line 123 of file IOerror.C.

Referenced by IOerror::abort().

Here is the caller graph for this function:

void abort (  ) 

Abort : used to stop code for fatal errors.

Reimplemented from error.

Definition at line 161 of file IOerror.C.

References Foam::endl(), IOerror::exit(), and Foam::Perr.

Here is the call graph for this function:


Friends And Related Function Documentation

Ostream& operator<< ( Ostream ,
const IOerror  
) [friend]


The documentation for this class was generated from the following files:
Copyright © 2000-2009 OpenCFD Ltd