dd-trace
Version:
Datadog APM tracing client for JavaScript
21 lines (17 loc) • 439 B
JavaScript
/**
* Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Defines custom error types throwable by the runtime.
*/
class ExtendedError extends Error {
constructor (reason) {
super(reason)
Object.setPrototypeOf(this, new.target.prototype)
}
}
class ImpendingTimeout extends ExtendedError {}
ImpendingTimeout.prototype.name = 'Impending Timeout'
module.exports = {
ImpendingTimeout
}