seal::OutOfRangeException< T > Class Template Reference

#include <exception.h>

Inheritance diagram for seal::OutOfRangeException< T >:

seal::OutOfBoundsException seal::Exception

List of all members.

Public Member Functions

 OutOfRangeException (const T &lowerBound, const T &upperBound, const T &requestedValue)
virtual ~OutOfRangeException ()
virtual std::string getMessage (void)
getAllowedLowerLimit ()
getAllowedUpperLimit ()

Detailed Description

template<typename T>
class seal::OutOfRangeException< T >

Exceptions of this type are thrown if memory/data beyond an allowed range for a collection is accessed. An OutOfRangeException is thrown by an agent which has the knowledge of the allowed range for that particular collection object. An agent unware of the allowed range will throw an OutOfBoundsException.

Constructor & Destructor Documentation

template<typename T>
seal::OutOfRangeException< T >::OutOfRangeException ( const T &  lowerBound,
const T &  upperBound,
const T &  requestedValue 
) [inline]


lowerBound The lower bound of the acceptable range.
upperBound The upper bound of the acceptable range.
requestedValue The user requested value.

template<typename T>
virtual seal::OutOfRangeException< T >::~OutOfRangeException (  )  [inline, virtual]

Virtual destructor.

Member Function Documentation

template<typename T>
std::string seal::OutOfRangeException< T >::getMessage ( void   )  [inline, virtual]

Returns the exception specific message string. This message will specify the reason for the occurance of the exception.

Reimplemented from seal::OutOfBoundsException.

template<typename T>
T seal::OutOfRangeException< T >::getAllowedLowerLimit (  )  [inline]

Returns the allowed lower limit.

template<typename T>
T seal::OutOfRangeException< T >::getAllowedUpperLimit (  )  [inline]

Returns the allowed upper limit.

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

Generated on Sat May 16 21:35:20 2009 for SEAL by  doxygen 1.5.5