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

SIGEL_Tools::SIG_Exception Class Reference

This is the abstract superclass of all exception-classes thrown by SIGEL-classes. More...

#include <SIG_Exception.h>

Inheritance diagram for SIGEL_Tools::SIG_Exception:

SIGEL_GP::SIG_GPException SIGEL_RobotIO::SIG_CorruptedStreamError SIGEL_RobotIO::SIG_FileNotFoundError SIGEL_RobotIO::SIG_MultipleChainsError SIGEL_RobotIO::SIG_SemanticError SIGEL_RobotIO::SIG_SyntaxError SIGEL_Simulation::SIG_DynaSystemWrongNumberException SIGEL_Simulation::SIG_RecorderBadRecordingOrderException SIGEL_Simulation::SIG_RecorderNoQueriesSetException SIGEL_Simulation::SIG_RegisterWrongSizeException SIGEL_Simulation::SIG_SimulationCannotSolveException List of all members.

Public Methods

 SIG_Exception (QString fileName, int line, QString message)
 This constructor should be used when throwing a new Exception. More...

 SIG_Exception (QString fileName, int line, QString message, SIG_Exception const& prevException)
 This constructor should be used when throwing an exception in a catch-block. More...

QString getMessage () const

Protected Attributes

QString message
 The QString containing all textual information about this exception. More...


Detailed Description

This is the abstract superclass of all exception-classes thrown by SIGEL-classes.

Definition at line 13 of file SIG_Exception.h.


Constructor & Destructor Documentation

SIGEL_Tools::SIG_Exception::SIG_Exception ( QString fileName,
int line,
QString message )
 

This constructor should be used when throwing a new Exception.

Parameters:
filename   The filename where the exception occured. The macro __FILE__ should be inserted here.
line   The line of code where the exception occured. The macro __LINE__ should be inserted here.
message   A short description of the exception.

Definition at line 3 of file SIG_Exception.cpp.

SIGEL_Tools::SIG_Exception::SIG_Exception ( QString fileName,
int line,
QString message,
SIG_Exception const & prevException )
 

This constructor should be used when throwing an exception in a catch-block.

The resulting exception contains the message from prevException, the sort-name of exception and the newly supplied message. It enables to add a (more detailed) message to the ones already contained in the catched exception. The created exception containing the accumulated messages can be thrown again.

Parameters:
fileName   The filename where the exception occured. The macro __FILE__ should be inserted here.
line   The line of code where the exception occured. The macro __LINE__ should be inserted here.
message   A short description of the exception. @prevException The catched exception whose message (together with the newly supplied one) forms the message of the constructed exception.

Definition at line 11 of file SIG_Exception.cpp.


Member Function Documentation

QString SIGEL_Tools::SIG_Exception::getMessage ( ) const
 

Returns:
The message contained in this exception.

Definition at line 22 of file SIG_Exception.cpp.


Member Data Documentation

QString SIGEL_Tools::SIG_Exception::message [protected]
 

The QString containing all textual information about this exception.

Definition at line 63 of file SIG_Exception.h.


The documentation for this class was generated from the following files:
Generated at Mon Sep 3 01:32:40 2001 for PG 368 - SIGEL by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000