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