Exception: Spider::Controller::NotFound

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/spiderfw/controller/controller_exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ NotFound

Returns a new instance of NotFound.



7
8
9
# File 'lib/spiderfw/controller/controller_exceptions.rb', line 7

def initialize(path)
    @path = path
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



5
6
7
# File 'lib/spiderfw/controller/controller_exceptions.rb', line 5

def path
  @path
end

Instance Method Details

#to_sObject



11
12
13
# File 'lib/spiderfw/controller/controller_exceptions.rb', line 11

def to_s
    "NotFound: #{@path}"
end