Exception: DeepAgentsRb::FileNotFoundError

Inherits:
FileError
  • Object
show all
Defined in:
lib/deepagents/deepagentsrb/errors.rb

Overview

Error raised when a file is not found

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ FileNotFoundError

Returns a new instance of FileNotFoundError.



32
33
34
35
# File 'lib/deepagents/deepagentsrb/errors.rb', line 32

def initialize(path)
  @path = path
  super("File not found: #{path}")
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



30
31
32
# File 'lib/deepagents/deepagentsrb/errors.rb', line 30

def path
  @path
end