|
bpp-core3
3.0.0
|
Wrong size exception class. More...
#include <Bpp/Exceptions.h>
Inheritance diagram for bpp::BadSizeException:
Collaboration diagram for bpp::BadSizeException:Public Member Functions | |
| BadSizeException (std::string text, std::size_t badSize, std::size_t correctSize) | |
| Build a new BadSizeException. More... | |
| std::size_t | getBadSize () const |
| std::size_t | getCorrectSize () 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 | |
| std::size_t | badSize_ |
| std::size_t | correctSize_ |
Wrong size exception class.
Definition at line 151 of file Exceptions.h.
| bpp::BadSizeException::BadSizeException | ( | std::string | text, |
| std::size_t | badSize, | ||
| std::size_t | correctSize | ||
| ) |
Build a new BadSizeException.
| text | A message to be passed to the exception hierarchy. |
| badSize | The faulty size. |
| correctSize | The expected size. |
Definition at line 121 of file Exceptions.cpp.
| std::size_t bpp::BadSizeException::getBadSize | ( | ) | const |
Definition at line 126 of file Exceptions.cpp.
References badSize_.
| std::size_t bpp::BadSizeException::getCorrectSize | ( | ) | const |
Definition at line 127 of file Exceptions.cpp.
References correctSize_.
|
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 154 of file Exceptions.h.
Referenced by getBadSize().
|
private |
Definition at line 155 of file Exceptions.h.
Referenced by getCorrectSize().