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

General exception for buffer errors. More...

#include <StormByte/buffer/exception.hxx>

Inheritance diagram for StormByte::Buffer::Error:
Collaboration diagram for StormByte::Buffer::Error:

Public Member Functions

 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

General exception for buffer errors.

Same path as Exception.

See also
ReadError, WriteError

Constructor & Destructor Documentation

◆ Error() [1/2]

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

Copy the message through the Base storage provider.

Parameters
otherError to copy.

◆ Error() [2/2]

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

Transfer Base-owned message storage.

Parameters
otherError to move from.

◆ ~Error()

StormByte::Buffer::Error::~Error ( )
overridenoexcept

Destroy the error.

Defined in this module so catch matches across a DLL.

Member Function Documentation

◆ Exception() [1/6]

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

Inherit the Buffer message constructors without adding a segment.

◆ Exception() [2/6]

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

Inherit the Buffer message constructors without adding a segment.

◆ Exception() [3/6]

StormByte::Buffer::Exception::Exception ( Path path,
std::string_view message )

Inherit the Buffer message constructors without adding a segment.

◆ Exception() [4/6]

template<typename... Args>
requires (sizeof...(Args) >= 1)
StormByte::Buffer::Exception::Exception ( Path path,
std::string_view pattern,
Args &&... args )
inline

Inherit the Buffer message constructors without adding a segment.

◆ Exception() [5/6]

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

Inherit the Buffer message constructors without adding a segment.

◆ Exception() [6/6]

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

Inherit the Buffer message constructors without adding a segment.

◆ operator=() [1/2]

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

Copy the message through the Base storage provider.

Parameters
otherError to copy.
Returns
This error.

◆ operator=() [2/2]

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