3#include <StormByte/buffer/visibility.h>
4#include <StormByte/exception.hxx>
14namespace StormByte::Buffer {
16 class STORMBYTE_BUFFER_PUBLIC
Exception:
public StormByte::Exception {
18 template <
typename... Args>
19 Exception(
const std::string& component, std::format_string<Args...> fmt, Args&&... args):
20 StormByte::Exception(
"Buffer::" +component, fmt, std::forward<Args>(args)...) {}
29 using Exception::Exception;
40 template <
typename... Args>
41 ReadError(std::format_string<Args...> fmt, Args&&... args):
42 Error(
"Buffer::ReadError", fmt, std::forward<Args>(args)...) {}
53 template <
typename... Args>
54 WriteError(std::format_string<Args...> fmt, Args&&... args):
55 Error(
"Buffer::WriteError", fmt, std::forward<Args>(args)...) {}
General exception class for buffer errors.
Definition exception.hxx:27
Definition exception.hxx:16
Exception class for read errors from buffers.
Definition exception.hxx:38
Exception class for write errors to buffers.
Definition exception.hxx:51