Exception: Hanami::Router::NotRoutableEndpointError

Inherits:
Hanami::Routing::Error
  • Object
show all
Defined in:
gems/gems/hanami-router-1.3.0/lib/hanami/router.rb

Overview

This error is raised when #call is invoked on a non-routable recognized route.

See Also:

  • #recognize
  • Hanami::Routing::RecognizedRoute
  • Hanami::Routing::RecognizedRoute#call
  • Hanami::Routing::RecognizedRoute#routable?

Since:

  • 0.5.0

Instance Method Summary collapse

Constructor Details

#initialize(env) ⇒ NotRoutableEndpointError

Returns a new instance of NotRoutableEndpointError

Since:

  • 0.5.0

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