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

    Interface TypeErrorConstructor

    表示 TypeError 对象的构造函数。

    Represents the constructor for TypeError objects.

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

    Hierarchy (View Summary)

    • Parameters

      • Optionalmessage: string

      Returns TypeError

    • Parameters

      • Optionalmessage: string

      Returns TypeError

      创建一个新的 TypeError 对象。

      Creates a new TypeError object.

      (可选)错误消息。

      (Optional) The error message.

    • Parameters

      • Optionalmessage: string

      Returns Error

    • Parameters

      • Optionalmessage: string

      Returns Error

      创建一个新的 Error 对象。

      Creates a new Error object.

      (可选)错误消息。

      (Optional) The error message.

    • Parameters

      • Optionalmessage: string

      Returns Error

    • Parameters

      • Optionalmessage: string

      Returns Error

      创建一个新的 Error 对象。

      Creates a new Error object.

      (可选)错误消息。

      (Optional) The error message.

    Index

    Constructors

    Properties

    Constructors

    Properties

    prototype: TypeError

    允许向 Error 对象添加属性。

    Allows the addition of properties to an Error object.