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 =

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.

Since:

  • 0.5.0

'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.

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



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