#include <MaxExceptions.h>
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.
|
OutOfRangeException | ( | const MCHAR * | message | ) |
const MCHAR* What | ( | ) | const [virtual] |
Returns the message of the exception.
Reimplemented from Exception.
Reimplemented in TabOutOfRangeException.