Class UnhandledAlertError

An error returned to indicate that there is an unhandled modal dialog on the current page.

extends

{bot.Error}

Hierarchy

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(message: string, alert: Alert): UnhandledAlertError

constructor

Parameters

  • message: string

    The error message.

  • alert: Alert

    The alert handle.

Returns

UnhandledAlertError

Properties

public code: number

This error's status code.

type

{!bot.ErrorCode}

public isAutomationError: boolean

Flag used for duck-typing when this code is embedded in a Firefox extension. This is required since an Error thrown in one component and then reported to another will fail instanceof checks in the second component.

type

{boolean}

public message: string

override

public name: string

override

public stack: string

override

public state: string

type

{string}

Methods

public getAlert(): Alert

Returns

Alert

The open alert.

public toString(): string

Returns

string

The string representation of this error.