class CancellationError

final
Error
  └ goog.debug.Error
      └ webdriver.promise.CancellationError

Error used when the computation of a promise is cancelled.

new CancellationError(opt_msg)

Parameters
opt_msgstring=

The cancellation message.

Instance Properties

descriptionstring

IE-only.

fileNamestring

Mozilla-only

lineNumbernumber

Mozilla-only.

messagestring
No description.
namestring
No description.
reportErrorToServerboolean

Whether to report this error to the server. Setting this to false will cause the error reporter to not report the error back to the server, which can be useful if the client knows that the error has already been logged on the server.

sourceURL?

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

stackstring
No description.

Static Functions

CancellationError.wrap(error, opt_msg)code ยป

Wraps the given error in a CancellationError. Will trivially return the error itself if it is an instanceof CancellationError.

Parameters
error*

The error to wrap.

opt_msgstring=

The prefix message to use.

Returns
webdriver.promise.CancellationError

A cancellation error.