Class Error

Error extension that includes error status codes from the WebDriver wire protocol: http://code.google.com/p/selenium/wiki/JsonWireProtocol#Response_Status_Codes

extends

{Error}

Hierarchy

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(code: number, opt_message?: string): Error

constructor

Parameters

  • code: number

    The error's status code.

  • opt_message?: string optional

    Optional error message.

Returns

Error

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 toString(): string

Returns

string

The string representation of this error.