libyui
|
#include <YUIException.h>
Public Member Functions | |
YUIIndexOutOfRangeException (int invalidIndex, int validMin, int validMax, const string &msg="") | |
int | invalidIndex () const |
int | validMin () const |
int | validMax () const |
Protected Member Functions | |
virtual ostream & | dumpOn (ostream &str) const |
Exception class for "index out of range"
YUIIndexOutOfRangeException::YUIIndexOutOfRangeException | ( | int | invalidIndex, |
int | validMin, | ||
int | validMax, | ||
const string & | msg = "" |
||
) | [inline] |
Constructor.
'invalidIndex' is the offending index value. It should be between 'validMin' and 'validMax':
validMin <= index <= validMax
virtual ostream& YUIIndexOutOfRangeException::dumpOn | ( | ostream & | str | ) | const [inline, protected, virtual] |
Write proper error message with all relevant data. Reimplemented from YUIException.
Reimplemented from YUIException.
int YUIIndexOutOfRangeException::invalidIndex | ( | ) | const [inline] |
Return the offending index value.
int YUIIndexOutOfRangeException::validMax | ( | ) | const [inline] |
Return the valid maximum index.
int YUIIndexOutOfRangeException::validMin | ( | ) | const [inline] |
Return the valid minimum index.