Exception: Hanami::Router::MissingEndpointError

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

Overview

Error raised when no endpoint is specified for a route.

Endpoints must be specified by ‘to:` or a block.

Since:

  • 2.0.0

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ MissingEndpointError

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

Since:

  • 2.0.0



21
22
23
# File 'lib/hanami/router/errors.rb', line 21

def initialize(path)
  super("missing endpoint for #{path.inspect}")
end