zazoomauro/node-dependency-injection

View on GitHub
lib/Exception/DefinitionNotFoundException.js

Summary

Maintainability
A
1 hr
Test Coverage
A
100%
export default class DefinitionNotFoundException extends Error {
  /**
   * @param {string} id
   */
  constructor (id) {
    super(`${id} definition not found`)
    this.name = 'DefinitionNotFoundException'
    this.stack = (new Error()).stack
  }
}