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

P::BaseError Class Reference
[Core library]

Exception base class. More...

#include <pexception.h>

Inheritance diagram for P::BaseError:

P::LogicError P::RuntimeError P::OutOfRangeError P::FTPError P::InvalidDate P::InvalidTime P::InvalidURL P::IORequest::Error P::NetDbError P::OverflowError P::SQLError P::SystemError List of all members.

Public Member Functions

 BaseError (const char *_what, const SourceInfo &_si) throw ()
 Exception constructor.

virtual ~BaseError () throw ()
 Destructor.

const char * what () const throw ()
 Returns the error message.

virtual BaseErrorclone () const
 Clones the object.

const SourceInfosourceInfo () const throw ()
 Returns the source information.

BaseErroroperator= (const BaseError &e)
 Assign operator.


Detailed Description

Exception base class.

The base class for all exceptions thrown by the P::Classes Application Framework. A exception object contains a cause- message and a SourceInfo object that describes where the exception occured.

Author:
Christian Prochnow <cproch@seculogix.de>

Definition at line 38 of file pexception.h.


Constructor & Destructor Documentation

P::BaseError::BaseError const char *  _what,
const SourceInfo _si
throw () [inline]
 

Exception constructor.

Constructs the exception object.

Parameters:
_what a pointer to string containing the error message
_si a reference to a SourceInfo object

Definition at line 46 of file pexception.h.

virtual P::BaseError::~BaseError  )  throw () [inline, virtual]
 

Destructor.

Definition at line 50 of file pexception.h.


Member Function Documentation

virtual BaseError* P::BaseError::clone  )  const [inline, virtual]
 

Clones the object.

This method returns an exact copy of the exception object.

Returns:
the copied exception object

Reimplemented in P::LogicError, P::RuntimeError, P::OutOfRangeError, P::OverflowError, P::SystemError, P::SyncError, P::IOError, P::FTPError, P::IORequest::Error, P::NetDbError, P::SQLError, and P::ThreadError.

Definition at line 65 of file pexception.h.

BaseError& P::BaseError::operator= const BaseError e  ) 
 

Assign operator.

const SourceInfo& P::BaseError::sourceInfo  )  const throw () [inline]
 

Returns the source information.

The method returns a reference to a SourceInfo object, which stores the location where the exception occured.

Returns:
const reference to the SourceInfo

Definition at line 74 of file pexception.h.

const char* P::BaseError::what  )  const throw () [inline]
 

Returns the error message.

Returns a pointer to the message which caused the exception.

Returns:
the cause of the exception

Definition at line 57 of file pexception.h.


The documentation for this class was generated from the following file:
Generated on Fri Mar 12 21:08:32 2004 for P::Classes by doxygen 1.3.3