zazoomauro/node-dependency-injection

View on GitHub
lib/Exception/ServiceFileNotLoadedException.js

Summary

Maintainability
A
1 hr
Test Coverage
A
100%
export default class ServiceFileNotLoadedException extends Error {
  /**
   * @param {string} fileName
   */
  constructor (reason) {
    super(`Service file could not be loaded. ${reason}`)
    this.name = 'ServiceFileNotLoadedException'
    this.stack = (new Error()).stack
  }
}