ForestAdmin/lumber

View on GitHub
utils/errors/dumper/invalid-lumber-project-structure-error.js

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
const LumberError = require('../../lumber-error');

class InvalidLumberProjectStructureError extends LumberError {
  /**
   * @param {{
   *  reason?: string;
   *  possibleSolution?: string
   * }} [options]
   */
  constructor(path, reason) {
    super(`We are not able to detect a lumber project file architecture at this path: ${path}.`, undefined, { reason });
    this.name = 'InvalidLumberProjectStructureError';
  }
}

module.exports = InvalidLumberProjectStructureError;