libfacade 1.1
A library for manipulating PNG images with payloads.
|
An exception thrown when the given bit depth isn't a valid value. More...
#include <exception.hpp>
Public Member Functions | |
InvalidBitDepth (std::uint8_t bit_depth) | |
Public Member Functions inherited from facade::exception::Exception | |
Exception () | |
Exception (const std::string &error) | |
const char * | what () const noexcept |
Get a C-string representation of the error. Adds compatibility with std::exception. | |
Public Attributes | |
std::uint8_t | bit_depth |
The offending bit depth value. | |
Public Attributes inherited from facade::exception::Exception | |
std::string | error |
The resulting error string provided by the exception. | |
An exception thrown when the given bit depth isn't a valid value.
Valid bit-depth values are 1, 2, 4, 8 and 16.
|
inline |
std::uint8_t facade::exception::InvalidBitDepth::bit_depth |
The offending bit depth value.