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

PsException Class Reference

base class for all exception generated by open Mask execution More...

#include <PsException.h>

Inheritance diagram for PsException:

Inheritance graph
[legend]
Collaboration diagram for PsException:

Collaboration graph
[legend]
List of all members.

Public Methods

 PsException (const PsString &mess)
 constructor with a message

 PsException (const PsException &orig)
 copy constructor

virtual ~PsException ()
 destructor

virtual ostream & insertInStream (ostream &out) const
 the member function to redefine to print more inforamtion on that the exception message

PsException & operator<< (const char *f)
 add information to the message associated to that exception

PsException & operator<< (const PsFlowable &f)
 add information to the message associated to that exception


Protected Attributes

PsString messageException
 the message associated


Friends

ostream & operator<< (ostream &stream, const PsException &Source)
 print the message assocaited to the exception


Detailed Description

base class for all exception generated by open Mask execution

Definition at line 27 of file PsException.h.


Constructor & Destructor Documentation

PsException::PsException const PsString   mess
 

constructor with a message

Definition at line 23 of file PsException.cxx.

References messageException.

00024 {
00025    messageException = mess ;
00026 #ifdef _DEBUGEXEC
00027    cerr<<"PsException::PsException: creating an exception: "<<mess<<endl;
00028 #endif
00029 
00030 }

PsException::PsException const PsException &    orig
 

copy constructor

Definition at line 36 of file PsException.cxx.

References messageException.

00037 {
00038 
00039    messageException = orig.messageException ;
00040  
00041 }

PsException::~PsException   [virtual]
 

destructor

Definition at line 32 of file PsException.cxx.

00032                           {
00033 
00034 }


Member Function Documentation

ostream & PsException::insertInStream ostream &    out const [virtual]
 

the member function to redefine to print more inforamtion on that the exception message

Reimplemented in PsUnInitialisedAttributeException.

Definition at line 59 of file PsException.cxx.

References messageException.

Referenced by PsUnInitialisedAttributeException::insertInStream(), and operator<<().

00059                                                          {
00060    out<<messageException;
00061    return out ;
00062 }

PsException & PsException::operator<< const PsFlowable   f
 

add information to the message associated to that exception

Definition at line 51 of file PsException.cxx.

References messageException.

00052 {
00053 
00054    messageException<<f;
00055 
00056    return *this ;
00057 }

PsException & PsException::operator<< const char *    f
 

add information to the message associated to that exception

Definition at line 43 of file PsException.cxx.

References messageException.

00044 {
00045 
00046    messageException<<f;
00047 
00048    return *this ;
00049 }


Friends And Related Function Documentation

ostream& operator<< ostream &    stream,
const PsException &    Source
[friend]
 

print the message assocaited to the exception

Definition at line 64 of file PsException.cxx.

00064                                                                     {
00065 
00066    return Source.insertInStream(stream) ;
00067 
00068 }


Member Data Documentation

PsString PsException::messageException [protected]
 

the message associated

Definition at line 55 of file PsException.h.

Referenced by insertInStream(), operator<<(), and PsException().


The documentation for this class was generated from the following files:
logo OpenMask

Documentation generated on Mon Nov 25 15:26:00 2002

Generated with doxygen 1.2.12 by Dimitri van Heesch ,   1997-2001