Skip to content
This repository has been archived by the owner on Dec 15, 2020. It is now read-only.

Latest commit

 

History

History
49 lines (37 loc) · 782 Bytes

interface.IErrorData.md

File metadata and controls

49 lines (37 loc) · 782 Bytes

类型 IErrorData

该类型描述 LiteRT 异常对象的纯数据结构。

结构

interface IErrorData<M extends DefaultMetadataType> {

    /**
     * 异常的错误号。
     */
    code: number;

    /**
     * 异常的名称。
     */
    name: string;

    /**
     * 异常的描述信息。
     */
    message: string;

    /**
     * 异常的元数据信息。
     */
    metadata: M;

    /**
     * 定义该异常的模块名称(而不一定是抛出异常的模块名称)。
     */
    module: string;

    /**
     * 该异常的其他可用错误码。
     */
    aliasCodes: number[];

    /**
     * 该异常的其他可用名称。
     */
    aliases: string[];
}

位置

文件 src/lib/Error.ts