bpp-core  2.2.0
bpp::OutOfRangeException Class Reference

Out of range exception class. More...

#include <Bpp/Exceptions.h>

+ Inheritance diagram for bpp::OutOfRangeException:
+ Collaboration diagram for bpp::OutOfRangeException:

Public Member Functions

 OutOfRangeException (const std::string &text, double badValue, double lowerBound, double upperBound)
 Build a new OutOfRangeException. More...
 
virtual ~OutOfRangeException () throw ()
 
double getLowerBound () const
 
double getUpperBound () const
 
const char * what () const throw ()
 Method to get the message of the exception (STL method redefinition). More...
 

Protected Attributes

double lowerBound_
 
double upperBound_
 
std::string message_
 

Detailed Description

Out of range exception class.

Definition at line 363 of file Exceptions.h.

Constructor & Destructor Documentation

◆ OutOfRangeException()

OutOfRangeException::OutOfRangeException ( const std::string &  text,
double  badValue,
double  lowerBound,
double  upperBound 
)

Build a new OutOfRangeException.

Parameters
textA message to be passed to the exception hierarchy.
badValueThe faulty value.
lowerBoundLower limit.
upperBoundUpper limit.

Definition at line 103 of file Exceptions.cpp.

◆ ~OutOfRangeException()

virtual bpp::OutOfRangeException::~OutOfRangeException ( )
throw (
)
inlinevirtual

Definition at line 381 of file Exceptions.h.

Member Function Documentation

◆ getLowerBound()

double bpp::OutOfRangeException::getLowerBound ( ) const
inline
Returns
The lower bound.

Definition at line 388 of file Exceptions.h.

References lowerBound_.

◆ getUpperBound()

double bpp::OutOfRangeException::getUpperBound ( ) const
inline
Returns
The upper bound.

Definition at line 393 of file Exceptions.h.

References upperBound_.

◆ what()

const char* bpp::Exception::what ( ) const
throw (
)
inlineinherited

Method to get the message of the exception (STL method redefinition).

Returns
The message passed to the exception hierarchy.

Definition at line 87 of file Exceptions.h.

References bpp::Exception::message_.

Member Data Documentation

◆ lowerBound_

double bpp::OutOfRangeException::lowerBound_
protected

Definition at line 367 of file Exceptions.h.

Referenced by getLowerBound().

◆ message_

std::string bpp::Exception::message_
protectedinherited

Definition at line 61 of file Exceptions.h.

Referenced by bpp::Exception::what().

◆ upperBound_

double bpp::OutOfRangeException::upperBound_
protected

Definition at line 367 of file Exceptions.h.

Referenced by getUpperBound().


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