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::InvalidColorType Class Reference

An exception thrown when the color type does not match the facade::png::ColorType enum. More...

#include <exception.hpp>

Inheritance diagram for facade::exception::InvalidColorType:
facade::exception::Exception

Public Member Functions

 InvalidColorType (std::uint8_t color_type)
 
- 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 color_type
 The offending color type 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 color type does not match the facade::png::ColorType enum.

Constructor & Destructor Documentation

◆ InvalidColorType()

facade::exception::InvalidColorType::InvalidColorType ( std::uint8_t  color_type)
inline

Member Data Documentation

◆ color_type

std::uint8_t facade::exception::InvalidColorType::color_type

The offending color type value.


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