Skip to main content
Version: 23.11.0

ConsoleMessage class

ConsoleMessage objects are dispatched by page via the 'console' event.

Signature

export declare class ConsoleMessage

Remarks

The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the ConsoleMessage class.

Methods

Method

Modifiers

Description

args()

An array of arguments passed to the console.

location()

The location of the console message.

stackTrace()

The array of locations on the stack of the console message.

text()

The text of the console message.

type()

The type of the console message.