zazoomauro/node-dependency-injection

View on GitHub
lib/Exception/AbstractServiceException.js

Summary

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