University of Sheffield   

    The Simons
    Component Library

Introduction   Class Hierarchy   Class Listing   Index of Classes   Index of Methods   Header Files  

Undefined Class Reference

#include <Undefined.h>

Inheritance diagram for Undefined:

MethodError Exception Object List of all members.

Detailed Description

Undefined: signals attempted invocation of an undefined method.

Raise an Undefined exception if an attempt is made to invoke an abstract method that has not yet been defined at the current level in the class hierarchy. Raise an Undefined exception if an attempt is made to invoke a method which has been disallowed in the protocol of some class because it can no longer support all of its parent's interface.

The general policy of raising run-time exceptions for attempting to invoke abstract or disallowed methods is determined by the need for every class to be compiled in isolation and capable of generating a default instance.


Public Member Functions

 Undefined ()
 Construct a default Undefined.

virtual ~Undefined ()
 Release an Undefined.

 Undefined (ObjectID, StringID)
 Construct an Undefined exception.

virtual ObjectID clone () const
 Clone a shallow copy of this Undefined.


Protected Member Functions

 Undefined (const Undefined &)
 Copy another Undefined.


Constructor & Destructor Documentation

Undefined::Undefined const Undefined &  exception  )  [protected]
 

Copy another Undefined.

Required by C++ to ensure that copying an Undefined faithfully copies an MethodError.

Parameters:
exception - the Undefined to copy.
Returns:
an Undefined, a shallow copy.

Undefined::Undefined  ) 
 

Construct a default Undefined.

Returns:
an Undefined

Undefined::~Undefined  )  [virtual]
 

Release an Undefined.

Undefined::Undefined ObjectID  object,
StringID  method
 

Construct an Undefined exception.

Raised when an attempt is made to invoke a method which has not yet been defined, or which can no longer be supported at this level in the class hierarchy.

Parameters:
object - the object in which the undefined method was invoked.
method - the name of the undefined method.
Returns:
a standard Undefined exception.


Member Function Documentation

ObjectID Undefined::clone  )  const [virtual]
 

Clone a shallow copy of this Undefined.

Returns:
an Undefined exception, a shallow copy.

Reimplemented from Exception.


The documentation for this class was generated from the following files:
Generated on Fri May 5 17:17:20 2006 for The Simons Component Library by doxygen1.3