libyui  3.0.10
 All Classes Functions Variables Enumerations Friends
YUIIndexOutOfRangeException Class Reference

#include <YUIException.h>

Inheritance diagram for YUIIndexOutOfRangeException:
Collaboration diagram for YUIIndexOutOfRangeException:

Public Member Functions

 YUIIndexOutOfRangeException (int invalidIndex, int validMin, int validMax, const std::string &msg="")
 
int invalidIndex () const
 
int validMin () const
 
int validMax () const
 
- Public Member Functions inherited from YUIException
 YUIException ()
 
 YUIException (const std::string &msg_r)
 
virtual ~YUIException () throw ()
 
const YCodeLocationwhere () const
 
void relocate (const YCodeLocation &newLocation) const
 
const std::string & msg () const
 
void setMsg (const std::string &msg)
 
std::string asString () const
 
virtual const char * what () const throw ()
 

Protected Member Functions

virtual std::ostream & dumpOn (std::ostream &str) const
 

Additional Inherited Members

- Static Public Member Functions inherited from YUIException
static std::string strErrno (int errno_r)
 
static std::string strErrno (int errno_r, const std::string &msg)
 
static void log (const YUIException &exception, const YCodeLocation &location, const char *const prefix)
 

Detailed Description

Exception class for "index out of range"

Definition at line 791 of file YUIException.h.

Constructor & Destructor Documentation

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.

Member Function Documentation

virtual std::ostream& YUIIndexOutOfRangeException::dumpOn ( std::ostream &  str) const
inlineprotectedvirtual

Write proper error message with all relevant data. Reimplemented from YUIException.

Reimplemented from YUIException.

Definition at line 836 of file YUIException.h.

Here is the call graph for this function:

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.


The documentation for this class was generated from the following file: