github.com/jfrog/frogbot@v1.1.1-0.20231221090046-821a26f50338/action/node_modules/deprecation/dist-src/index.js (about)

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