zazoomauro/node-dependency-injection

View on GitHub
lib/Exception/PrivateServiceException.js

Summary

Maintainability
A
1 hr
Test Coverage
A
100%
export default class PrivateServiceException extends Error {
  /**
   * @param {string} id
   */
  constructor (id) {
    super(`The service ${id} is private`)
    this.name = 'PrivateServiceException'
    this.stack = (new Error()).stack
  }
}