#include <exception.h>
Inheritance diagram for Exception::IndexOverflow:
Public Member Functions | |
IndexOverflow (const char *file, int line, Index index=0, Size size=0) throw () | |
Protected Attributes | |
Size | size_ |
Index | index_ |
Throw this exception to indicate an index that was larger than allowed. The constructor has two additional arguments, the values of which should be set to the index that caused the failure and the largest allowed value to simplify debugging.
index | the value of the index causing the problem | |
size | largest value allowed for index |