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

Write failed. More...

#include <StormByte/buffer/exception.hxx>

Inheritance diagram for StormByte::Buffer::WriteError:
Collaboration diagram for StormByte::Buffer::WriteError:

Public Member Functions

template<typename... Args>
requires (sizeof...(Args) >= 1)
 WriteError (std::string_view pattern, Args &&... args)
 Replace literal {} under StormByte.Buffer.Write.
 WriteError (std::string_view message)
 Copy a borrowed plain message under StormByte.Buffer.Write in the provider.
 WriteError (const WriteError &other)
 Copy the message through the Base storage provider.
 WriteError (WriteError &&other) noexcept
 Transfer Base-owned message storage.
WriteError & operator= (const WriteError &other)
 Copy the message through the Base storage provider.
WriteError & operator= (WriteError &&other) noexcept
 Transfer Base-owned message storage.
 ~WriteError () 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

Write failed.

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

Constructor & Destructor Documentation

◆ WriteError() [1/4]

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

Replace literal {} under StormByte.Buffer.Write.

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.

◆ WriteError() [2/4]

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

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

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

◆ WriteError() [3/4]

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

Copy the message through the Base storage provider.

Parameters
otherError to copy.

◆ WriteError() [4/4]

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

Transfer Base-owned message storage.

Parameters
otherError to move from.

◆ ~WriteError()

StormByte::Buffer::WriteError::~WriteError ( )
overridenoexcept

Destroy the error.

Defined in this module so catch matches across a DLL.

Member Function Documentation

◆ operator=() [1/2]

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

Copy the message through the Base storage provider.

Parameters
otherError to copy.
Returns
This error.

◆ operator=() [2/2]

WriteError & StormByte::Buffer::WriteError::operator= ( WriteError && 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: