Exception: Hanami::Router::NotRoutableEndpointError

Inherits:
Error
  • Object
show all
Defined in:
lib/hanami/router/errors.rb

Overview

Error raised when a recognized route is called but has no callable endpoint.

See Also:

Since:

  • 0.5.0

Instance Method Summary collapse

Constructor Details

#initialize(env) ⇒ NotRoutableEndpointError

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of NotRoutableEndpointError.

Since:

  • 0.5.0



80
81
82
# File 'lib/hanami/router/errors.rb', line 80

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