Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

IntelibX Class Reference

#include <iexcept.hpp>

Inheritance diagram for IntelibX:

Inheritance graph
[legend]
Collaboration diagram for IntelibX:

Collaboration graph
[legend]
List of all members.

Detailed Description

The generic InteLib exception.

The IntelibX class is the superclass of all existing exceptional situations detected/generated within the library. It encapsulates the functionality necessary to hold the description of a particular exceptions category (as a C string), the parameter which describes a particular exception (as an S-expression) and the Lisp calling stack for the moment exception had been thrown (as an S-expression).

The children of IntelibX (such as IntelibX_not_a_string,
IntelibX_cant_evaluate etc.) are used in actual exception handling.
Note:
the class has no virtual table.

Definition at line 40 of file iexcept.hpp.

Public Member Functions

 IntelibX (const char *a_descr)
 The 1st form of constructor.
 IntelibX (const char *a_descr, SReference a_param)
 The 1st form of constructor.
 IntelibX (const IntelibX &other)
 The copy constructor.
 ~IntelibX ()
 The destructor.
void AddStack (SReference r)
 Add an element to the carried stack-related information.
const char * Description () const
 Get the description.
const SReferenceParameter () const
 Get the parameter.
const SReferenceStack () const
 Get the stack.


Constructor & Destructor Documentation

IntelibX::IntelibX const char *  a_descr  ) 
 

The 1st form of constructor.

Constructs an exception without a parameter, such as IntelibX_unexpected_unbound_value. It's assumed there's no relevant S-expression.

Definition at line 19 of file iexcept.cpp.

IntelibX::IntelibX const char *  a_descr,
SReference  a_param
 

The 1st form of constructor.

Constructs an exception with a parameter, which is assumed to be somehow relevant to the problem detected (such as the S-expression which fails to meet some requirements)

Definition at line 23 of file iexcept.cpp.

IntelibX::IntelibX const IntelibX other  ) 
 

The copy constructor.

Strings are copied. SReferences are assigned.

Definition at line 27 of file iexcept.cpp.

IntelibX::~IntelibX  ) 
 

The destructor.

Definition at line 31 of file iexcept.cpp.


Member Function Documentation

void IntelibX::AddStack SReference  r  ) 
 

Add an element to the carried stack-related information.

Definition at line 34 of file iexcept.cpp.

References SReference::GetPtr(), and PTheEmptyList.

const char* IntelibX::Description  )  const
 

Get the description.

Definition at line 85 of file iexcept.hpp.

const SReference& IntelibX::Parameter  )  const
 

Get the parameter.

Definition at line 87 of file iexcept.hpp.

const SReference& IntelibX::Stack  )  const
 

Get the stack.

Definition at line 89 of file iexcept.hpp.


The documentation for this class was generated from the following files:
Generated on Tue Dec 18 00:41:51 2007 for InteLib by  doxygen 1.4.1