index.js 327 B

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