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

An exception thrown when the possible space provided by the image data is too small for the given operation. More...

#include <exception.hpp>

Inheritance diagram for facade::exception::ImageTooSmall:
facade::exception::Exception

Public Member Functions

 ImageTooSmall (std::size_t given, std::size_t needed)
 
- 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::size_t given
 The amount of data the given image can hold, in bytes.
 
std::size_t needed
 The amount of space needed by the operation.
 
- 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 possible space provided by the image data is too small for the given operation.

Constructor & Destructor Documentation

◆ ImageTooSmall()

facade::exception::ImageTooSmall::ImageTooSmall ( std::size_t  given,
std::size_t  needed 
)
inline

Member Data Documentation

◆ given

std::size_t facade::exception::ImageTooSmall::given

The amount of data the given image can hold, in bytes.

◆ needed

std::size_t facade::exception::ImageTooSmall::needed

The amount of space needed by the operation.


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