Exception: Sinatra::Unit::UnknownRouteError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/sinatra/unit.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(method, path, params) ⇒ UnknownRouteError

Returns a new instance of UnknownRouteError.



9
10
11
12
13
# File 'lib/sinatra/unit.rb', line 9

def initialize(method, path, params)
  self.method, self.path, self.params = method, path, params
  message = "Could not resovle route #{method} #{path} with params #{params.inspect}"
  super message
end

Instance Attribute Details

#methodObject

Returns the value of attribute method.



8
9
10
# File 'lib/sinatra/unit.rb', line 8

def method
  @method
end

#paramsObject

Returns the value of attribute params.



8
9
10
# File 'lib/sinatra/unit.rb', line 8

def params
  @params
end

#pathObject

Returns the value of attribute path.



8
9
10
# File 'lib/sinatra/unit.rb', line 8

def path
  @path
end