From d6423a9c8c9bfc4869f397f4b85c4aacccedc8ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=93=E4=BF=8A?= Date: Thu, 10 Oct 2024 09:58:10 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E6=96=B0=E5=A2=9E=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 邓俊 --- .../include/relational_store_error_code.h | 116 +++++++++++++++++- 1 file changed, 115 insertions(+), 1 deletion(-) diff --git a/distributeddatamgr/relational_store/include/relational_store_error_code.h b/distributeddatamgr/relational_store/include/relational_store_error_code.h index 9fc2f6d2d..371d3454c 100644 --- a/distributeddatamgr/relational_store/include/relational_store_error_code.h +++ b/distributeddatamgr/relational_store/include/relational_store_error_code.h @@ -307,7 +307,121 @@ typedef enum OH_Rdb_ErrCode { /** * @brief The error when the connection count is used up. */ - RDB_E_CON_OVER_LIMIT = (E_BASE + 48) + RDB_E_CON_OVER_LIMIT = (E_BASE + 48), + + /** + * @brief The sharedblock unit is null. + * @since 14 + */ + RDB_E_NULL_OBJECT = (E_BASE + 49), + + /** + * @brief Failed to insert data because the database is full. + * @since 14 + */ + RDB_E_SQLITE_FULL = (E_BASE + 52), + + /** + * @brief The database is already attached. + * @since 14 + */ + RDB_E_DATABASE_ATTACHED = (E_BASE + 54), + + /** + * @brief Generic error. + * @since 14 + */ + RDB_E_SQLITE_ERROR = (E_BASE + 55), + + /** + * @brief The database disk image is malformed. + * @since 14 + */ + RDB_E_SQLITE_CORRUPT = (E_BASE + 56), + + /** + * @brief Callback routine requested an abort. + * @since 14 + */ + RDB_E_SQLITE_ABORT = (E_BASE + 58), + + /** + * @brief Access permission denied. + * @since 14 + */ + RDB_E_SQLITE_PERM_DENIED = (E_BASE + 59), + + /** + * @brief The database file is locked. + * @since 14 + */ + RDB_E_SQLITE_BUSY = (E_BASE + 60), + + /** + * @brief A table in the database is locked. + * @since 14 + */ + RDB_E_SQLITE_LOCKED = (E_BASE + 61), + + /** + * @brief malloc() failed. + * @since 14 + */ + RDB_E_SQLITE_NOMEM = (E_BASE + 62), + + /** + * @brief The RDB store to write is read-only. + * @since 14 + */ + RDB_E_SQLITE_ONLY_READ = (E_BASE + 63), + + /** + * @brief A disk I/O error occurred. + * @since 14 + */ + RDB_E_SQLITE_IO_ERR = (E_BASE + 64), + + /** + * @brief Failed to open the database file. + * @since 14 + */ + RDB_E_SQLITE_CANNOT_OPEN = (E_BASE + 65), + + /** + * @brief String or BLOB exceeds size limit. + * @since 14 + */ + RDB_E_SQLITE_TOO_BIG = (E_BASE + 66), + + /** + * @brief Abort due to constraint violation. + * @since 14 + */ + RDB_E_SQLITE_CONSTRAINT = (E_BASE + 67), + + /** + * @brief Data type mismatch. + * @since 14 + */ + RDB_E_SQLITE_MISMATCH = (E_BASE + 68), + + /** + * @brief The interface is used incorrectly or in an unsuported way. + * @since 14 + */ + RDB_E_SQLITE_MISUSE = (E_BASE + 69), + + /** + * @brief There is an invalid configuration change in the database. + * @since 14 + */ + RDB_E_CONFIG_INVALID_CHANGE = (E_BASE + 70), + + /** + * @brief Database schema has changed. + * @since 14 + */ + RDB_E_SQLITE_SCHEMA_CHANGE = (E_BASE + 72), } OH_Rdb_ErrCode; #ifdef __cplusplus -- Gitee