Exception: Hanami::Router::NotRoutableEndpointError
- Inherits:
-
Hanami::Routing::Error
- Object
- StandardError
- Hanami::Routing::Error
- Hanami::Router::NotRoutableEndpointError
- Defined in:
- lib/hanami/router.rb
Overview
This error is raised when #call
is invoked on a non-routable recognized route.
Constant Summary collapse
- REQUEST_METHOD =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
'REQUEST_METHOD'.freeze
- PATH_INFO =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
'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.
98 99 100 |
# File 'lib/hanami/router.rb', line 98 def initialize(env) super %(Cannot find routable endpoint for #{ env[REQUEST_METHOD] } "#{ env[PATH_INFO] }") end |