44#include <StormByte/type_traits/safe.hxx>
47#include <StormByte/exception.hxx>
48#include <StormByte/safe/string.hxx>
97 template <
typename... Args>
98 requires (
sizeof...(Args) >= 1)
99 explicit Exception(std::string_view pattern, Args&&... args)
154 template <typename... Args>
155 requires (sizeof...(Args) >= 1)
217 template <
typename... Args>
218 requires (
sizeof...(Args) >= 1)
219 explicit ReadError(std::string_view pattern, Args&&... args)
220 :
Error(
Path{
"Read"}, pattern, std::forward<Args>(args)...) {}
272 template <
typename... Args>
273 requires (
sizeof...(Args) >= 1)
274 explicit WriteError(std::string_view pattern, Args&&... args)
275 :
Error(
Path{
"Write"}, pattern, std::forward<Args>(args)...) {}
Error & operator=(const Error &other)
Copy the message through the Base storage provider.
Error(const Error &other)
Copy the message through the Base storage provider.
Error(Error &&other) noexcept
Transfer Base-owned message storage.
~Error() noexcept override
Destroy the error.
Error & operator=(Error &&other) noexcept
Transfer Base-owned message storage.
Exception(std::string_view pattern, Args &&... args)
Inherit the Buffer message constructors without adding a segment.
Definition exception.hxx:99
Exception & operator=(Exception &&other) noexcept
Transfer Base-owned message storage without allocating.
Exception(const Exception &other)
Copy Base-owned message storage through its provider.
Exception(std::string_view message)
Copy a borrowed plain message under StormByte.Buffer in the provider.
Exception(Exception &&other) noexcept
Transfer Base-owned message storage without allocating.
~Exception() noexcept override
Destroy the exception.
Exception & operator=(const Exception &other)
Copy Base-owned message storage through its provider.
Exception(std::string_view pattern, Args &&... args)
Replace literal {} under StormByte.Buffer.
Definition exception.hxx:99
ReadError & operator=(ReadError &&other) noexcept
Transfer Base-owned message storage.
ReadError(ReadError &&other) noexcept
Transfer Base-owned message storage.
~ReadError() noexcept override
Destroy the error.
ReadError(std::string_view message)
Copy a borrowed plain message under StormByte.Buffer.Read in the provider.
ReadError & operator=(const ReadError &other)
Copy the message through the Base storage provider.
ReadError(const ReadError &other)
Copy the message through the Base storage provider.
ReadError(std::string_view pattern, Args &&... args)
Replace literal {} under StormByte.Buffer.Read.
Definition exception.hxx:219
WriteError(const WriteError &other)
Copy the message through the Base storage provider.
WriteError(WriteError &&other) noexcept
Transfer Base-owned message storage.
WriteError(std::string_view message)
Copy a borrowed plain message under StormByte.Buffer.Write in the provider.
WriteError & operator=(const WriteError &other)
Copy the message through the Base storage provider.
~WriteError() noexcept override
Destroy the error.
WriteError & operator=(WriteError &&other) noexcept
Transfer Base-owned message storage.
WriteError(std::string_view pattern, Args &&... args)
Replace literal {} under StormByte.Buffer.Write.
Definition exception.hxx:274
STORMBYTE_DECLARE_MAYBE_SAFE(class StormByte::System::Device::Access)
Buffer module of the StormByte suite.
Root namespace of the StormByte C++ suite.
Additional path segments nested below StormByte.Buffer.
Definition exception.hxx:81
std::string_view segments
Additional dotted path segments.
Definition exception.hxx:82
constexpr Path(std::string_view segments) noexcept
Wraps additional path segments.
Definition exception.hxx:88
#define STORMBYTE_BUFFER_PUBLIC
Definition visibility.h:54