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_msg
string=
The cancellation message.
Instance Properties
- reportErrorToServer
boolean
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.
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_msg
string=
The prefix message to use.