StormByte-Buffer 4.0.0
C++26 buffer module of the StormByte suite
Loading...
Searching...
No Matches
StormByte::Buffer::ReadError Class Reference

Read, extract or peek failed. More...

#include <StormByte/buffer/exception.hxx>

Inheritance diagram for StormByte::Buffer::ReadError:
Collaboration diagram for StormByte::Buffer::ReadError:

Public Member Functions

template<typename... Args>
requires (sizeof...(Args) >= 1)
 ReadError (std::string_view pattern, Args &&... args)
 Replace literal {} under StormByte.Buffer.Read.
 ReadError (std::string_view message)
 Copy a borrowed plain message under StormByte.Buffer.Read in the provider.
 ReadError (const ReadError &other)
 Copy the message through the Base storage provider.
 ReadError (ReadError &&other) noexcept
 Transfer Base-owned message storage.
ReadError & operator= (const ReadError &other)
 Copy the message through the Base storage provider.
ReadError & operator= (ReadError &&other) noexcept
 Transfer Base-owned message storage.
 ~ReadError () noexcept override
 Destroy the error.
Public Member Functions inherited from StormByte::Buffer::Error
 Error (const Error &other)
 Copy the message through the Base storage provider.
 Error (Error &&other) noexcept
 Transfer Base-owned message storage.
Error & operator= (const Error &other)
 Copy the message through the Base storage provider.
Error & operator= (Error &&other) noexcept
 Transfer Base-owned message storage.
 ~Error () noexcept override
 Destroy the error.
template<typename... Args>
requires (sizeof...(Args) >= 1)
 Exception (std::string_view pattern, Args &&... args)
 Inherit the Buffer message constructors without adding a segment.
 Exception (std::string_view message)
 Inherit the Buffer message constructors without adding a segment.
 Exception (const Exception &other)
 Inherit the Buffer message constructors without adding a segment.
 Exception (Exception &&other) noexcept
 Inherit the Buffer message constructors without adding a segment.
 Exception (Path path, std::string_view message)
 Inherit the Buffer message constructors without adding a segment.
template<typename... Args>
requires (sizeof...(Args) >= 1)
 Exception (Path path, std::string_view pattern, Args &&... args)
 Inherit the Buffer message constructors without adding a segment.
Public Member Functions inherited from StormByte::Buffer::Exception
template<typename... Args>
requires (sizeof...(Args) >= 1)
 Exception (std::string_view pattern, Args &&... args)
 Replace literal {} under StormByte.Buffer.
 Exception (std::string_view message)
 Copy a borrowed plain message under StormByte.Buffer in the provider.
 Exception (const Exception &other)
 Copy Base-owned message storage through its provider.
 Exception (Exception &&other) noexcept
 Transfer Base-owned message storage without allocating.
Exception & operator= (const Exception &other)
 Copy Base-owned message storage through its provider.
Exception & operator= (Exception &&other) noexcept
 Transfer Base-owned message storage without allocating.
 ~Exception () noexcept override
 Destroy the exception.
Public Member Functions inherited from StormByte::Exception
 Exception (std::string_view message)
 Exception (const Exception &other)
 Exception (Exception &&other) noexcept
Exception & operator= (const Exception &other)
Exception & operator= (Exception &&other) noexcept
virtual const char * what () const noexcept

Additional Inherited Members

Protected Member Functions inherited from StormByte::Buffer::Exception
 Exception (Path path, std::string_view message)
 Plain message under an additional Buffer path.
template<typename... Args>
requires (sizeof...(Args) >= 1)
 Exception (Path path, std::string_view pattern, Args &&... args)
 Replace literal {} under an additional Buffer path.
Protected Member Functions inherited from StormByte::Exception
 Exception () noexcept
 Exception (Path path, std::string_view message)
 Exception (Path path, Safe::String &&message)
 Exception (Path path, std::string_view pattern, Args &&... args)

Detailed Description

Read, extract or peek failed.

what() is StormByte.Buffer.Read: message.

Constructor & Destructor Documentation

◆ ReadError() [1/4]

template<typename... Args>
requires (sizeof...(Args) >= 1)
StormByte::Buffer::ReadError::ReadError ( std::string_view pattern,
Args &&... args )
inlineexplicit

Replace literal {} under StormByte.Buffer.Read.

Template Parameters
ArgsViews, numbers, or types that convert to std::string. A number uses std::to_string.
Parameters
patternBody with literal {} tokens. Not a std::format string.
argsReplacements. One per token, in order.

◆ ReadError() [2/4]

StormByte::Buffer::ReadError::ReadError ( std::string_view message)
explicit

Copy a borrowed plain message under StormByte.Buffer.Read in the provider.

Parameters
messageException text. Copied during the call and never retained.

◆ ReadError() [3/4]

StormByte::Buffer::ReadError::ReadError ( const ReadError & other)

Copy the message through the Base storage provider.

Parameters
otherError to copy.

◆ ReadError() [4/4]

StormByte::Buffer::ReadError::ReadError ( ReadError && other)
noexcept

Transfer Base-owned message storage.

Parameters
otherError to move from.

◆ ~ReadError()

StormByte::Buffer::ReadError::~ReadError ( )
overridenoexcept

Destroy the error.

Defined in this module so catch matches across a DLL.

Member Function Documentation

◆ operator=() [1/2]

ReadError & StormByte::Buffer::ReadError::operator= ( const ReadError & other)

Copy the message through the Base storage provider.

Parameters
otherError to copy.
Returns
This error.

◆ operator=() [2/2]

ReadError & StormByte::Buffer::ReadError::operator= ( ReadError && other)
noexcept

Transfer Base-owned message storage.

Parameters
otherError to move from.
Returns
This error.

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