From 8f0dda5eab181b0f14f2652b4e984aaaae3f258c Mon Sep 17 00:00:00 2001 From: rtk0c Date: Mon, 27 Jun 2022 18:27:13 -0700 Subject: Start from a clean slate --- 3rdparty/sqlitecpp/source/SQLiteCpp/Exception.cpp | 47 ----------------------- 1 file changed, 47 deletions(-) delete mode 100644 3rdparty/sqlitecpp/source/SQLiteCpp/Exception.cpp (limited to '3rdparty/sqlitecpp/source/SQLiteCpp/Exception.cpp') diff --git a/3rdparty/sqlitecpp/source/SQLiteCpp/Exception.cpp b/3rdparty/sqlitecpp/source/SQLiteCpp/Exception.cpp deleted file mode 100644 index 0dc644f..0000000 --- a/3rdparty/sqlitecpp/source/SQLiteCpp/Exception.cpp +++ /dev/null @@ -1,47 +0,0 @@ -/** - * @file Exception.cpp - * @ingroup SQLiteCpp - * @brief Encapsulation of the error message from SQLite3 on a std::runtime_error. - * - * Copyright (c) 2012-2021 Sebastien Rombauts (sebastien.rombauts@gmail.com) - * - * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt - * or copy at http://opensource.org/licenses/MIT) - */ -#include - -#include - - -namespace SQLite -{ - -Exception::Exception(const char* aErrorMessage, int ret) : - std::runtime_error(aErrorMessage), - mErrcode(ret), - mExtendedErrcode(-1) -{ -} - -Exception::Exception(sqlite3* apSQLite) : - std::runtime_error(sqlite3_errmsg(apSQLite)), - mErrcode(sqlite3_errcode(apSQLite)), - mExtendedErrcode(sqlite3_extended_errcode(apSQLite)) -{ -} - -Exception::Exception(sqlite3* apSQLite, int ret) : - std::runtime_error(sqlite3_errmsg(apSQLite)), - mErrcode(ret), - mExtendedErrcode(sqlite3_extended_errcode(apSQLite)) -{ -} - -// Return a string, solely based on the error code -const char* Exception::getErrorStr() const noexcept -{ - return sqlite3_errstr(mErrcode); -} - - -} // namespace SQLite -- cgit v1.2.3-70-g09d2