Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

lfc::Exception Class Reference

base class for all exceptions in LFC. More...

Inheritance diagram for lfc::Exception::

lfc::Object lfc::_Formatable lfc::HiResTimeSpanException lfc::IOException lfc::MutexException lfc::RegexpException lfc::RTTIException lfc::SemaphoreException lfc::ThreadException lfc::TimeException lfc::TimeSpanException List of all members.

Public Methods

 Exception (string msg="", string location="?") throw ()
 Exception (const Exception &e) throw ()
virtual ~Exception () throw ()
const Exception & operator= (const Exception &e) throw ()
string message () const throw ()
 return a description of the exception. More...

string location () const throw ()
 return the throw location of the exception. More...

virtual string name () const throw ()
 return exception's name (override this!). More...

virtual void formatObject (TextOutput &ts, string format="") const throw ()
 format object to a text stream. More...


Protected Attributes

string m_message
string m_location

Detailed Description

base class for all exceptions in LFC.

Todo:
make this thread safe


Constructor & Destructor Documentation

lfc::Exception::Exception string    msg = "",
string    location = "?"
throw () [inline]
 

lfc::Exception::Exception const Exception &    e throw () [inline]
 

virtual lfc::Exception::~Exception   throw () [inline, virtual]
 


Member Function Documentation

const Exception& lfc::Exception::operator= const Exception &    e throw () [inline]
 

string lfc::Exception::message   const throw () [inline]
 

return a description of the exception.

string lfc::Exception::location   const throw () [inline]
 

return the throw location of the exception.

virtual string lfc::Exception::name   const throw () [inline, virtual]
 

return exception's name (override this!).

Reimplemented in lfc::IOException, lfc::RTTIException, lfc::BufferedStreamException, lfc::ConsoleException, lfc::FileException, lfc::MemoryIOException, lfc::PutbackTextException, lfc::SerialPortException, lfc::SocketException, lfc::ApplicationException, lfc::MutexException, lfc::SemaphoreException, lfc::ThreadException, lfc::HiResTimeSpanException, lfc::TimeException, lfc::TimeSpanException, lfc::RegexpException, lfc::RegexpParseException, and lfc::RegexpMatchException.

void lfc::Exception::formatObject TextOutput   ts,
string    format = ""
const throw () [virtual]
 

format object to a text stream.

Reimplemented from lfc::_Formatable.


Member Data Documentation

string lfc::Exception::m_message [protected]
 

string lfc::Exception::m_location [protected]
 


The documentation for this class was generated from the following files:
Generated on Fri Jan 25 03:13:03 2002 for LFC2 by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001