45#include <StormByte/exception.hxx>
46#include <StormByte/safe/string.hxx>
47#include <StormByte/size.hxx>
90 template <
typename... Args>
91 requires (
sizeof...(Args) >= 1)
115 template <
typename... Args>
116 requires (
sizeof...(Args) >= 1)
228 template <
typename... Args>
229 requires (
sizeof...(Args) >= 1)
230 WrongValueType(std::string_view component, std::string_view pattern, Args&&... args)
231 :
Exception(
Path{
Segment(
"WrongValueType.", component)}, pattern, std::forward<Args>(args)...) {}
373 template <
typename... Args>
374 requires (
sizeof...(Args) >= 1)
375 QueryException(std::string_view component, std::string_view pattern, Args&&... args)
Column name missing from a Row.
Definition exception.hxx:269
ColumnNotFound(const ColumnNotFound &other)=default
Copy constructor.
~ColumnNotFound() noexcept override
Destructor.
ColumnNotFound(ColumnNotFound &&other) noexcept=default
Move constructor.
ColumnNotFound(std::string_view column)
Construct from the missing name.
Connection failed.
Definition exception.hxx:169
ConnectionError(ConnectionError &&other) noexcept=default
Move constructor.
ConnectionError(std::string_view error)
Construct from a backend message.
~ConnectionError() noexcept override
Destructor.
ConnectionError(const ConnectionError &other)=default
Copy constructor.
Abstract backend.
Definition database.hxx:73
Exception(Path path, std::string_view message)
Plain message under an additional Database path.
~Exception() noexcept override
Destructor.
Exception(Path path, std::string_view pattern, Args &&... args)
Replace literal {} under an additional Database path.
Definition exception.hxx:117
Exception(std::string_view pattern, Args &&... args)
Replace literal {} under StormByte.Database.
Definition exception.hxx:92
Exception(Exception &&other) noexcept=default
Move constructor.
Exception(std::string_view message)
Copy a plain message under StormByte.Database.
static StormByte::Safe::String Segment(std::string_view prefix, std::string_view component)
Join a fixed prefix and a dynamic segment.
Definition exception.hxx:158
Exception(const Exception &other)=default
Copy constructor.
Query or statement execution failed.
Definition exception.hxx:458
ExecuteError(ExecuteError &&other) noexcept=default
Move constructor.
ExecuteError(std::string_view error)
Construct from a backend message.
ExecuteError(const ExecuteError &other)=default
Copy constructor.
~ExecuteError() noexcept override
Destructor.
Column index out of range.
Definition exception.hxx:313
~OutOfBounds() noexcept override
Destructor.
OutOfBounds(OutOfBounds &&other) noexcept=default
Move constructor.
OutOfBounds(StormByte::Size pos, StormByte::Size size)
Construct from index and size.
OutOfBounds(const OutOfBounds &other)=default
Copy constructor.
Base for query errors.
Definition exception.hxx:358
QueryException(const QueryException &other)=default
Copy constructor.
QueryException(std::string_view error)
Construct from an error message.
QueryException(QueryException &&other) noexcept=default
Move constructor.
QueryException(std::string_view component, std::string_view pattern, Args &&... args)
Replace literal {} under StormByte.Database.Query.
Definition exception.hxx:375
~QueryException() noexcept override
Destructor.
TransactionError(TransactionError &&other) noexcept=default
Move constructor.
TransactionError(std::string_view error)
Construct from the failure reason.
TransactionError(const TransactionError &other)=default
Copy constructor.
~TransactionError() noexcept override
Destructor.
Prepared statement name is not registered.
Definition exception.hxx:414
UnknownSTMT(const UnknownSTMT &other)=default
Copy constructor.
UnknownSTMT(std::string_view name)
Construct from the statement name.
~UnknownSTMT() noexcept override
Destructor.
UnknownSTMT(UnknownSTMT &&other) noexcept=default
Move constructor.
Value accessed as the wrong type.
Definition exception.hxx:213
WrongValueType(WrongValueType &&other) noexcept=default
Move constructor.
WrongValueType(std::string_view component, std::string_view pattern, Args &&... args)
Replace literal {} under StormByte.Database.WrongValueType.
Definition exception.hxx:230
~WrongValueType() noexcept override
Destructor.
WrongValueType(const WrongValueType &other)=default
Copy constructor.
WrongValueType(std::string_view error)
Construct from an error message.
String & append(std::string_view text)
static String ReplaceToken(std::string_view text, Args &&... args)
STORMBYTE_DECLARE_MAYBE_SAFE(StormByte::Logger::Exception)
Database module of the StormByte suite.
Root namespace of the StormByte C++ suite.
Additional path segments nested below StormByte.Database.
Definition exception.hxx:74
constexpr Path(std::string_view segments) noexcept
Wraps additional path segments.
Definition exception.hxx:81
std::string_view segments
Additional dotted path segments.
Definition exception.hxx:75
#define STORMBYTE_DATABASE_PUBLIC
Definition visibility.h:54