For AI agents: the complete documentation index is available at /en/llms.txt, the full documentation bundle is available at /en/llms-full.txt, and this page is available as Markdown at /en/reference/sdk/sapi/db/classes/DbError.md.
  • English
  • Class: DbError

    Defined in: sapi/db/client.ts:25

    数据库客户端异常(包含服务端返回的业务 code 与 HTTP status)。

    Extends

    • Error

    Constructors

    Constructor

    new DbError(
       message: string, 
       code: string, 
       status: number): DbError;

    Defined in: sapi/db/client.ts:30

    Parameters

    ParameterType
    messagestring
    codestring
    statusnumber

    Returns

    DbError

    Overrides

    Error.constructor

    Properties

    PropertyTypeDescriptionDefined in
    codestring错误码(例如 "permission_denied"、"use_tx")。sapi/db/client.ts:27
    statusnumberHTTP 状态码;网络异常时为 0。sapi/db/client.ts:29