Class: Hanami::Routes::NotCallableEndpointError

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

Overview

Error raised when a given routes endpoint does not implement the ‘#call` interface required for Rack.

Since:

  • 2.0.0

Instance Method Summary collapse

Constructor Details

#initialize(endpoint) ⇒ NotCallableEndpointError

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

Since:

  • 2.0.0



58
59
60
# File 'lib/hanami/routes.rb', line 58

def initialize(endpoint)
  super("#{endpoint.inspect} is not compatible with Rack. Please make sure it implements #call.")
end