![]() |
The Simons
|
#include <OutOfRange.h>
Inheritance diagram for OutOfRange:
Raise an OutOfRange exception if an attempt is made to access an element of a Collection at an out-of-range index. Similar indexed containers may also raise this exception. OutOfRange provides access to the failed object(), the error message(), the failed method() and the failed index(). Typically, an OutOfRange exception is due to a semantic error in program code, using an index that is off-by-one, and so should be treated as fatal. However, client programs may choose to handle this exception in appropriate ways.
Public Member Functions | |
OutOfRange () | |
Construct a default OutOfRange. | |
virtual | ~OutOfRange () |
Release an OutOfRange. | |
OutOfRange (ObjectID, StringID, Integer) | |
Construct an OutOfRange exception. | |
virtual ObjectID | clone () const |
Clone a shallow copy of this OutOfRange. | |
Integer | index () const |
Access the out-of-range index. | |
Protected Member Functions | |
OutOfRange (const OutOfRange &) | |
Copy another OutOfRange. | |
Protected Attributes | |
Integer | failedIndex |
The failed index. |
|
Copy another OutOfRange. Required by C++ to ensure that copying an OutOfRange faithfully copies a MethodError.
|
|
Construct a default OutOfRange.
|
|
Release an OutOfRange.
|
|
Construct an OutOfRange exception. Raised when an attempt is made to access an element of a Collection at an out-of-range index. May also be raised by other kinds of container which index their elements.
|
|
Clone a shallow copy of this OutOfRange.
Reimplemented from Exception. |
|
Access the out-of-range index.
|
|
The failed index.
|