Exception: Hanami::Router::NotRoutableEndpointError

Inherits:
Hanami::Routing::Error show all
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 =

Since:

  • 0.5.0

'REQUEST_METHOD'.freeze
PATH_INFO =

Since:

  • 0.5.0

'PATH_INFO'.freeze

Instance Method Summary collapse

Constructor Details

#initialize(env) ⇒ NotRoutableEndpointError

Returns a new instance of NotRoutableEndpointError.

Since:

  • 0.5.0



89
90
91
# File 'lib/hanami/router.rb', line 89

def initialize(env)
  super %(Cannot find routable endpoint for #{ env[REQUEST_METHOD] } "#{ env[PATH_INFO] }")
end