zazoomauro/node-dependency-injection

View on GitHub
lib/Exception/NotAbstractServiceException.js

Summary

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