|
bpp-core3
3.0.0
|
Number format exception. More...
#include <Bpp/Exceptions.h>
Inheritance diagram for bpp::NumberFormatException:
Collaboration diagram for bpp::NumberFormatException:Public Member Functions | |
| NumberFormatException (std::string text, std::string badNumber) | |
| Build a new NumberFormatException. More... | |
| const std::string & | 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 | |
| std::string | badNumber_ |
Number format exception.
Definition at line 113 of file Exceptions.h.
| bpp::NumberFormatException::NumberFormatException | ( | std::string | text, |
| std::string | badNumber | ||
| ) |
Build a new NumberFormatException.
| text | A message to be passed to the exception hierarchy. |
| badNumber | The faulty number. |
Definition at line 105 of file Exceptions.cpp.
| const std::string & bpp::NumberFormatException::getBadNumber | ( | ) | const |
Get the number that threw this exception.
Definition at line 109 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 116 of file Exceptions.h.
Referenced by getBadNumber().