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).
Loading...
Searching...
No Matches
List of all members
StormByte::Buffer::BufferNotReady Class Reference

Exception class for buffer readiness errors. More...

#include <exception.hxx>

Inheritance diagram for StormByte::Buffer::BufferNotReady:
Inheritance graph
[legend]
Collaboration diagram for StormByte::Buffer::BufferNotReady:
Collaboration graph
[legend]

Additional Inherited Members

- Public Member Functions inherited from StormByte::Exception
 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.
 
Exceptionoperator= (const Exception &e)
 Copy assignment operator.
 
Exceptionoperator= (Exception &&e) noexcept
 Move assignment operator.
 
virtual const charwhat () const noexcept
 Gets the exception message.
 

Detailed Description

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.


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