bpp-core3
3.0.0
|
Number exception: doubles. More...
#include <Bpp/Exceptions.h>
Public Member Functions | |
BadNumberException (std::string text, double badNumber) | |
Build a new BadNumberException. More... | |
double | getBadNumber () const |
Get the number that threw this exception. More... | |
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 | badNumber_ |
Number exception: doubles.
Definition at line 95 of file Exceptions.h.
bpp::BadNumberException::BadNumberException | ( | std::string | text, |
double | badNumber | ||
) |
Build a new BadNumberException.
text | A message to be passed to the exception hierarchy. |
badNumber | The faulty number. |
Definition at line 99 of file Exceptions.cpp.
double bpp::BadNumberException::getBadNumber | ( | ) | const |
Get the number that threw this exception.
Definition at line 103 of file Exceptions.cpp.
References badNumber_.
|
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 98 of file Exceptions.h.
Referenced by getBadNumber().