bpp-core3
3.0.0
|
Number exception: integers. More...
#include <Bpp/Exceptions.h>
Public Member Functions | |
BadIntegerException (std::string text, int badInt) | |
Build a new BadIntegerException. More... | |
int | getBadInteger () const |
Get the integer 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 | |
int | badInt_ |
std::string | message_ |
Number exception: integers.
Definition at line 115 of file Exceptions.h.
bpp::BadIntegerException::BadIntegerException | ( | std::string | text, |
int | badInt | ||
) |
Build a new BadIntegerException.
text | A message to be passed to the exception hierarchy. |
badInt | The faulty integer. |
Definition at line 133 of file Exceptions.cpp.
int bpp::BadIntegerException::getBadInteger | ( | ) | const |
Get the integer that threw this exception.
Definition at line 137 of file Exceptions.cpp.
References badInt_.
|
noexceptinherited |
Access the message as a std::string.
Definition at line 119 of file Exceptions.cpp.
References bpp::Exception::message_.
|
overridenoexceptinherited |
Method to get the message of the exception (STL method redefinition).
Definition at line 118 of file Exceptions.cpp.
References bpp::Exception::message_.
|
private |
Definition at line 118 of file Exceptions.h.
Referenced by getBadInteger().
|
privateinherited |
Definition at line 61 of file Exceptions.h.
Referenced by bpp::Exception::Exception(), bpp::Exception::message(), and bpp::Exception::what().