Jam3/adviser

View on GitHub
src/core/errors/exceptions/config-file-path-not-found-error.js

Summary

Maintainability
A
0 mins
Test Coverage
/**
 * @fileoverview ConfigFilePathNotFound Exception
 *
 */

'use strict';

const ConfigFileNotFoundError = require('./config-file-not-found-error');
const messages = require('../messages/messages-enum');

/**
 * Adviser Configuration Filepath Not Found Exception
 *
 * @class ConfigFilePathNotFoundError
 * @extends {ConfigFileNotFoundError}
 */
class ConfigFilePathNotFoundError extends ConfigFileNotFoundError {
  constructor(path = null) {
    super(null, path);
    this.name = this.constructor.name;
    Error.captureStackTrace(this, ConfigFilePathNotFoundError);

    this.messageTemplate = messages.configFilePathNotFound;
  }
}

module.exports = ConfigFilePathNotFoundError;