Main Page | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages | Examples

vetException Class Reference

Object designed to store exceptions' information (instead of a simple string), exception handling code is slower and deprecated in most cases. More...

#include <vetException.h>


Public Types

enum  
 Ignore this, it's a class-type definition, mostly used by VETLib WorkShop, sintax is a bit more complex than usual because of a VC6 BUG, it's the same as: const int vetClassType = VETCLASS_TYPE_EXCEPTION;.

Public Member Functions

 vetException ()(std
 Default constructor(s), initialize the string message.
 vetException ()(std
 Full constructor, initialize all parameters.
virtual ~vetException ()
std::string getDescription ()
 Read current description.
void * getCallerObject ()
 Gets object which raised exception.
VETRESULT getReturnCode ()
 Read object return code.

Protected Attributes

std::string m_s
 Message of the exception.
void * caller
 pointer to object which raised exception.
VETRESULT retCode
 VETLib return code of the process (a sort of error).

Friends

ostream & operator<< (ostream &os, vetException &p)
 This overlaoded operator pushes a rapresentation of the exception to the output stream (os).


Detailed Description

Object designed to store exceptions' information (instead of a simple string), exception handling code is slower and deprecated in most cases.

Bug:
Warning:
Todo:
Version:
1.0.2
Date:
22/12/2005
Author:
Alessandro Polo
VETLib Framework 1.0.2 Copyright (C) Alessandro Polo 2006 http://www.ewgate.net/vetlib

Definition at line 50 of file vetException.h.


Member Function Documentation

void* vetException::getCallerObject  )  [inline]
 

Gets object which raised exception.

Returns:
pointer to the caller object.

Definition at line 104 of file vetException.h.

References caller.

std::string vetException::getDescription  )  [inline]
 

Read current description.

Returns:
standard c++ string.

Definition at line 97 of file vetException.h.

References m_s.

VETRESULT vetException::getReturnCode  )  [inline]
 

Read object return code.

Returns:
standard vetlib return code from the caller object.

Definition at line 111 of file vetException.h.


Friends And Related Function Documentation

ostream& operator<< ostream &  os,
vetException p
[friend]
 

This overlaoded operator pushes a rapresentation of the exception to the output stream (os).

Parameters:
os The output stream.
p The exception to output.
Returns:
A reference to the output stream for chained calls.

Definition at line 123 of file vetException.h.


The documentation for this class was generated from the following file:
Generated on Tue Jan 24 11:59:32 2006 for VETLib by  doxygen 1.4.4