神岛 API 文档 - ArenaPro版
    Preparing search index...

    Interface ErrorConstructor

    表示错误对象的构造函数。

    Represents the constructor for Error objects.

    interface ErrorConstructor {
        new ErrorConstructor(message?: string): Error;
        prototype: Error;
        (message?: string): Error;
        (message?: string): Error;
    }

    Hierarchy (View Summary)

    • Parameters

      • Optionalmessage: string

      Returns Error

    • Parameters

      • Optionalmessage: string

      Returns Error

      创建一个新的 Error 对象。

      Creates a new Error object.

      (可选)错误消息。

      (Optional) The error message.

    Index

    Constructors

    Properties

    Constructors

    • Parameters

      • Optionalmessage: string

      Returns Error

      创建一个新的 Error 对象。

      Creates a new Error object.

      (可选)错误消息。

      (Optional) The error message.

    Properties

    prototype: Error

    允许向 Error 对象添加属性。

    Allows the addition of properties to an Error object.