Main Page   Modules   Namespace List   Class Hierarchy   Data Structures   File List   Namespace Members   Data Fields   Globals   Related Pages  

Sct::FileException Class Reference
[Exceptions]

Thrown to indicate a file IO error. More...

#include <IoExceptions.h>

Inheritance diagram for Sct::FileException:

Sct::IoException Sct::Exception Sct::AbstractThrowable Sct::Throwable exception

Public Member Functions

 FileException (const string &fileName, const string &msg, const string &file, int line) throw ()
 Creates an Exception with message msg and no cause.

 FileException (const string &fileName, Throwable &cause, const string &file, int line) throw ()
 Creates an Exception with a cause.

 FileException (const string &fileName, const string &msg, Throwable &cause, const string &file, int line) throw ()
 Creates an Exception with a message and a cause.

 ~FileException () throw ()
const string & getFileName () const throw ()
 Get the filename of the file being accessed which caused the exception.

virtual shared_ptr< Throwableclone () const throw ()
 Necessary for chaining of exceptions unfortunately.

virtual string getMessage () const throw ()
 Gets the detail message for this.


Protected Member Functions

 FileException () throw ()

Protected Attributes

string fileName
 the name of the file which had the problem


Detailed Description

Thrown to indicate a file IO error.

Author:
Alan Barr

Definition at line 80 of file IoExceptions.h.


Constructor & Destructor Documentation

Sct::FileException::FileException const string &    fileName,
const string &    msg,
const string &    file,
int    line
throw ()
 

Creates an Exception with message msg and no cause.

Definition at line 46 of file IoExceptions.cpp.

Sct::FileException::FileException const string &    fileName,
Throwable   cause,
const string &    file,
int    line
throw ()
 

Creates an Exception with a cause.

Useful for simply wrapping exceptions.

Definition at line 50 of file IoExceptions.cpp.

Sct::FileException::FileException const string &    fileName,
const string &    msg,
Throwable   cause,
const string &    file,
int    line
throw ()
 

Creates an Exception with a message and a cause.

Definition at line 54 of file IoExceptions.cpp.

Sct::FileException::~FileException   throw () [inline]
 

Definition at line 98 of file IoExceptions.h.

Sct::FileException::FileException   throw () [inline, protected]
 

Definition at line 106 of file IoExceptions.h.


Member Function Documentation

shared_ptr< Throwable > Sct::FileException::clone   const throw () [virtual]
 

Necessary for chaining of exceptions unfortunately.

Should return a copy of this allocated on the heap. It is necessary for sub-classes to override this if they add new data members or if they do and special processing in what() or sentToMrs()

Reimplemented from Sct::AbstractThrowable.

Definition at line 63 of file IoExceptions.cpp.

const string & Sct::FileException::getFileName   const throw ()
 

Get the filename of the file being accessed which caused the exception.

Definition at line 59 of file IoExceptions.cpp.

string Sct::FileException::getMessage   const throw () [virtual]
 

Gets the detail message for this.

Reimplemented from Sct::AbstractThrowable.

Definition at line 67 of file IoExceptions.cpp.


Field Documentation

string Sct::FileException::fileName [protected]
 

the name of the file which had the problem

Definition at line 108 of file IoExceptions.h.


The documentation for this class was generated from the following files:
Generated on Mon Dec 15 19:37:17 2003 for SCT DAQ/DCS Software by doxygen1.3-rc3