bpp-core3
3.0.0
|
Out of range exception class. More...
#include <Bpp/Exceptions.h>
Public Member Functions | |
OutOfRangeException (std::string text, double badValue, double lowerBound, double upperBound) | |
Build a new OutOfRangeException. More... | |
double | getBadValue () const |
double | getLowerBound () const |
double | getUpperBound () const |
const char * | what () const noexcept override |
Method to get the message of the exception (STL method redefinition). More... | |
const std::string & | message () const noexcept |
Access the message as a std::string. More... | |
Private Attributes | |
double | badValue_ |
std::array< double, 2 > | bounds_ |
Out of range exception class.
Definition at line 170 of file Exceptions.h.
bpp::OutOfRangeException::OutOfRangeException | ( | std::string | text, |
double | badValue, | ||
double | lowerBound, | ||
double | upperBound | ||
) |
Build a new OutOfRangeException.
text | A message to be passed to the exception hierarchy. |
badValue | The faulty value. |
lowerBound | Lower limit. |
upperBound | Upper limit. |
Definition at line 129 of file Exceptions.cpp.
double bpp::OutOfRangeException::getBadValue | ( | ) | const |
Definition at line 135 of file Exceptions.cpp.
References badValue_.
double bpp::OutOfRangeException::getLowerBound | ( | ) | const |
Definition at line 136 of file Exceptions.cpp.
References bounds_.
double bpp::OutOfRangeException::getUpperBound | ( | ) | const |
Definition at line 137 of file Exceptions.cpp.
References bounds_.
|
noexceptinherited |
Access the message as a std::string.
Definition at line 79 of file Exceptions.cpp.
References bpp::Exception::message_.
|
overridenoexceptinherited |
Method to get the message of the exception (STL method redefinition).
Definition at line 78 of file Exceptions.cpp.
References bpp::Exception::message_.
|
private |
Definition at line 173 of file Exceptions.h.
Referenced by getBadValue().
|
private |
Definition at line 174 of file Exceptions.h.
Referenced by getLowerBound(), and getUpperBound().