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

An exception thrown when a given integer overflows. More...

#include <exception.hpp>

Inheritance diagram for facade::exception::IntegerOverflow:
facade::exception::Exception

Public Member Functions

 IntegerOverflow (std::size_t given, std::size_t max)
 
- 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 given value which caused the overflow.
 
std::size_t max_
 The maximum value that can be given.
 
- Public Attributes inherited from facade::exception::Exception
std::string error
 The resulting error string provided by the exception.
 

Detailed Description

An exception thrown when a given integer overflows.

Constructor & Destructor Documentation

◆ IntegerOverflow()

facade::exception::IntegerOverflow::IntegerOverflow ( std::size_t  given,
std::size_t  max 
)
inline

Member Data Documentation

◆ given

std::size_t facade::exception::IntegerOverflow::given

The given value which caused the overflow.

◆ max_

std::size_t facade::exception::IntegerOverflow::max_

The maximum value that can be given.


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