class Error

Error
  └ bot.Error

Represents an error returned from a WebDriver command request.

new Error(code, opt_message)

Parameters
codenumber

The error's status code.

opt_messagestring=

Optional error message.

Instance Methods

toString()code ยป

Returns
string

The string representation of this error.

Instance Properties

codenumber

This error's status code.

descriptionstring

IE-only.

fileNamestring

Mozilla-only

isAutomationErrorboolean

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.

lineNumbernumber

Mozilla-only.

messagestring
No description.
namestring
No description.
sourceURL?

Doesn't seem to exist, but closure/debug.js references it.

stackstring
No description.
statestring
No description.

Types

Error.State

Status strings enumerated in the W3C WebDriver protocol.