Exception: Sinatra::Unit::UnknownRouteError
- Inherits:
-
StandardError
- Object
- StandardError
- Sinatra::Unit::UnknownRouteError
- Defined in:
- lib/sinatra/unit.rb
Instance Attribute Summary collapse
-
#method ⇒ Object
Returns the value of attribute method.
-
#params ⇒ Object
Returns the value of attribute params.
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(method, path, params) ⇒ UnknownRouteError
constructor
A new instance of UnknownRouteError.
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 = "Could not resovle route #{method} #{path} with params #{params.inspect}" super end |
Instance Attribute Details
#method ⇒ Object
Returns the value of attribute method.
8 9 10 |
# File 'lib/sinatra/unit.rb', line 8 def method @method end |
#params ⇒ Object
Returns the value of attribute params.
8 9 10 |
# File 'lib/sinatra/unit.rb', line 8 def params @params end |
#path ⇒ Object
Returns the value of attribute path.
8 9 10 |
# File 'lib/sinatra/unit.rb', line 8 def path @path end |