VSQLite++ 0.3
Loading...
Searching...
No Matches
database_exception.hpp File Reference

Exception hierarchy mirroring common SQLite failure categories. More...

#include <stdexcept>
#include <string>
#include <utility>
Include dependency graph for database_exception.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  sqlite::v2::database_exception
 Generic runtime failure raised for most SQLite errors. More...
struct  sqlite::v2::database_exception_code
 Exception that carries the original SQLite error code and optional SQL snippet. More...
struct  sqlite::v2::buffer_too_small_exception
 Raised when a caller-provided buffer is too small to hold a blob/text payload. More...
struct  sqlite::v2::database_misuse_exception
 Used for programming errors such as double-closing or using invalidated resources. More...
struct  sqlite::v2::database_misuse_exception_code
 Logic-error flavour that also exposes the SQLite status code and SQL string. More...
struct  sqlite::v2::database_system_error
 Wraps system-level failures (e.g., file I/O) that bubble up from SQLite APIs. More...

Namespaces

namespace  sqlite
namespace  sqlite::v2

Functions

std::string sqlite::v2::append_sql_context (std::string message, std::string const &sql)
 Helper that appends [SQL: ...] context to an existing message.

Detailed Description

Exception hierarchy mirroring common SQLite failure categories.

The types in this header surface sqlite3_errcode values, SQL snippets, and system error codes so callers can build rich diagnostics without sprinkling raw strings.

Definition in file database_exception.hpp.