blob: c6bbda759360614d866808728861b65174a8b3ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
class Deprecation extends Error {
constructor(message) {
super(message); // Maintains proper stack trace (only available on V8)
/* istanbul ignore next */
if (Error.captureStackTrace) {
Error.captureStackTrace(this, this.constructor);
}
this.name = 'Deprecation';
}
}
export { Deprecation };
|