Exception: MotherBrain::FileNotFound

Inherits:
MBError
  • Object
show all
Defined in:
lib/mb/errors.rb

Constant Summary

Constants inherited from MBError

MBError::DEFAULT_EXIT_CODE

Instance Method Summary collapse

Methods inherited from MBError

#error_code, error_code, exit_code, #exit_code, #to_hash, #to_json, #to_s

Constructor Details

#initialize(path) ⇒ FileNotFound

Returns a new instance of FileNotFound.



475
476
477
# File 'lib/mb/errors.rb', line 475

def initialize(path)
  @path = path
end

Instance Method Details

#messageObject



479
480
481
# File 'lib/mb/errors.rb', line 479

def message
  "File does not exist: #{path}"
end