StormByte C++ Library 0.0.9999
StormByte is a comprehensive, cross-platform C++ library aimed at easing system programming, configuration management, logging, and database handling tasks. This library provides a unified API that abstracts away the complexities and inconsistencies of different platforms (Windows, Linux).
|
Exception class for buffer readiness errors. More...
#include <exception.hxx>
Additional Inherited Members | |
![]() | |
Exception (const std::string &message) | |
Constructor. | |
Exception (std::string &&message) | |
Constructor. | |
template<typename... Args> | |
Exception (std::format_string< Args... > fmt, Args &&... args) | |
Constructor forwards the message to the std::format function. | |
Exception (const Exception &e) | |
Copy constructor. | |
Exception (Exception &&e) noexcept | |
Move constructor. | |
virtual | ~Exception () noexcept |
Destructor. | |
Exception & | operator= (const Exception &e) |
Copy assignment operator. | |
Exception & | operator= (Exception &&e) noexcept |
Move assignment operator. | |
virtual const char * | what () const noexcept |
Gets the exception message. | |
Exception class for buffer readiness errors.
The BufferNotReady
exception is thrown when an operation is attempted on a buffer that is not in a ready state. This can occur if the buffer is empty, has reached the end of its data (EOF), or is in an error state.
This exception ensures that operations are only performed when the buffer is in a valid state, preventing undefined behavior.
Inherits all functionality from the StormByte::Buffer::Exception
class.