Exception: Lotus::Router::NotRoutableEndpointError
- Inherits:
-
Lotus::Routing::Error
- Object
- StandardError
- Lotus::Routing::Error
- Lotus::Router::NotRoutableEndpointError
- Defined in:
- lib/lotus/router.rb
Overview
This error is raised when #call
is invoked on a non-routable recognized route.
Constant Summary collapse
- REQUEST_METHOD =
'REQUEST_METHOD'.freeze
- PATH_INFO =
'PATH_INFO'.freeze
Instance Method Summary collapse
-
#initialize(env) ⇒ NotRoutableEndpointError
constructor
A new instance of NotRoutableEndpointError.
Constructor Details
#initialize(env) ⇒ NotRoutableEndpointError
Returns a new instance of NotRoutableEndpointError.
89 90 91 |
# File 'lib/lotus/router.rb', line 89 def initialize(env) super %(Cannot find routable endpoint for #{ env[REQUEST_METHOD] } "#{ env[PATH_INFO] }") end |