libfacade 1.1
A library for manipulating PNG images with payloads.
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
facade::exception::InvalidBitDepth Class Reference

An exception thrown when the given bit depth isn't a valid value. More...

#include <exception.hpp>

Inheritance diagram for facade::exception::InvalidBitDepth:
facade::exception::Exception

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.
 

Detailed Description

An exception thrown when the given bit depth isn't a valid value.

Valid bit-depth values are 1, 2, 4, 8 and 16.

Constructor & Destructor Documentation

◆ InvalidBitDepth()

facade::exception::InvalidBitDepth::InvalidBitDepth ( std::uint8_t  bit_depth)
inline

Member Data Documentation

◆ bit_depth

std::uint8_t facade::exception::InvalidBitDepth::bit_depth

The offending bit depth value.


The documentation for this class was generated from the following file: