Public Member Functions | Public Attributes | Private Member Functions

alize::IndexOutOfBoundsException Class Reference

#include <Exception.h>

Inheritance diagram for alize::IndexOutOfBoundsException:
Inheritance graph
[legend]
Collaboration diagram for alize::IndexOutOfBoundsException:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 IndexOutOfBoundsException (const String &msg, const String &sourceFile, int line, long index, long limit)
 IndexOutOfBoundsException (const IndexOutOfBoundsException &)
virtual ~IndexOutOfBoundsException ()
virtual String getClassName () const
virtual String toString () const

Public Attributes

const long index
const long limit

Private Member Functions

bool operator== (const IndexOutOfBoundsException &) const
bool operator!= (const IndexOutOfBoundsException &e) const
const IndexOutOfBoundsExceptionoperator= (const IndexOutOfBoundsException &)

Detailed Description

This exception may be thrown to indicate that an index of some sort (such as to an array, to a string, or to a vector) is out of range.

Author:
Frederic Wils frederic.wils@lia.univ-avignon.fr
Version:
1.0
Date:
2003

Definition at line 137 of file Exception.h.


Constructor & Destructor Documentation

IndexOutOfBoundsException::IndexOutOfBoundsException ( const String msg,
const String sourceFile,
int  line,
long  index,
long  limit 
) [explicit]

Definition at line 203 of file Exception.cpp.

IndexOutOfBoundsException::IndexOutOfBoundsException ( const IndexOutOfBoundsException e )

Definition at line 207 of file Exception.cpp.

IndexOutOfBoundsException::~IndexOutOfBoundsException (  ) [virtual]

Definition at line 222 of file Exception.cpp.


Member Function Documentation

String IndexOutOfBoundsException::getClassName (  ) const [virtual]

Returns the name of the class

Returns:
the name of the class of the object as a String

Reimplemented from alize::Exception.

Definition at line 219 of file Exception.cpp.

bool alize::IndexOutOfBoundsException::operator!= ( const IndexOutOfBoundsException e ) const [private]

Not implemented

const IndexOutOfBoundsException& alize::IndexOutOfBoundsException::operator= ( const IndexOutOfBoundsException  ) [private]

Not implemented

bool alize::IndexOutOfBoundsException::operator== ( const IndexOutOfBoundsException  ) const [private]
String IndexOutOfBoundsException::toString (  ) const [virtual]

This method is frequently overridden in the derived classes. If it is not, it returns the name of the class of the object and the address of the object

Returns:
a description of the object

Reimplemented from alize::Exception.

Definition at line 212 of file Exception.cpp.

References index, limit, and alize::String::valueOf().


Member Data Documentation

Definition at line 148 of file Exception.h.

Referenced by toString().

Definition at line 149 of file Exception.h.

Referenced by toString().


The documentation for this class was generated from the following files: