Class: Hanami::Routes::NotCallableEndpointError
- Defined in:
- lib/hanami/routes.rb
Overview
Error raised when a given routes endpoint does not implement the ‘#call` interface required for Rack.
Instance Method Summary collapse
-
#initialize(endpoint) ⇒ NotCallableEndpointError
constructor
private
A new instance of NotCallableEndpointError.
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.
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 |