var util = require('util');

function NotFound(path) {
  this.name = 'Not Found' + (path ? ':  ' + path : '');
  if (path) {
    Error.call(this, 'Cannot find ' + path);
    this.path = path;
  } else {
    Error.call(this, 'Not Found');
  }

  Error.captureStackTrace(this, arguments.callee);
}

util.inherits(NotFound, Error);

var exports = module.exports = {
  NotFound: NotFound
};