OutOfRangeException Class Reference
 
 
 
OutOfRangeException Class Reference

#include <MaxExceptions.h>

Inheritance diagram for OutOfRangeException:
Exception MaxHeapOperators TabOutOfRangeException

Class Description

Thrown when an out of bounds index is detected.

Used when bounds checking indexes passed into arrays. For instance if an array has 10 items, valid indexes would be 0 thru 9. Therefore an instance of this class could be thrown if an index of -1 or 10 was passed into an array.

Public Member Functions

  OutOfRangeException (const MCHAR *message)
const MCHAR *  What () const
  Returns the message of the exception.

Constructor & Destructor Documentation

OutOfRangeException ( const MCHAR *  message )

Member Function Documentation

const MCHAR* What ( ) const [virtual]

Returns the message of the exception.

Reimplemented from Exception.

Reimplemented in TabOutOfRangeException.