lib/CancellationError.js
Extends Error. Instances of this class are used as rejection reasons when a promise is cancelled.
Error
Each instance will have a name property with a value of "cancel". However, the instances will not have stack traces.
name
"cancel"
Node should log the error as [CancellationError].
[CancellationError]
CancellationError
Extends
Error
. Instances of this class are used as rejection reasons when a promise is cancelled.