#include <exception.h>
Public Member Functions | |
OutOfRangeException (const T &lowerBound, const T &upperBound, const T &requestedValue) | |
virtual | ~OutOfRangeException () |
virtual std::string | getMessage (void) |
T | getAllowedLowerLimit () |
T | getAllowedUpperLimit () |
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
. seal::OutOfRangeException< T >::OutOfRangeException | ( | const T & | lowerBound, | |
const T & | upperBound, | |||
const T & | requestedValue | |||
) | [inline] |
Constructor.
lowerBound | The lower bound of the acceptable range. | |
upperBound | The upper bound of the acceptable range. | |
requestedValue | The user requested value. |
virtual seal::OutOfRangeException< T >::~OutOfRangeException | ( | ) | [inline, virtual] |
Virtual destructor.
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.
T seal::OutOfRangeException< T >::getAllowedLowerLimit | ( | ) | [inline] |
Returns the allowed lower limit.
T seal::OutOfRangeException< T >::getAllowedUpperLimit | ( | ) | [inline] |
Returns the allowed upper limit.