libyui
Public Member Functions | Protected Member Functions

YUIIndexOutOfRangeException Class Reference

#include <YUIException.h>

Inheritance diagram for YUIIndexOutOfRangeException:
YUIException

List of all members.

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

Detailed Description

Exception class for "index out of range"


Constructor & Destructor Documentation

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


Member Function Documentation

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.


The documentation for this class was generated from the following file:
 All Classes Functions Variables Enumerations Friends