Exception: Hanami::Router::MissingRouteError

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

Overview

Error raised when a named route could not be found.

See Also:

Since:

  • 2.0.0

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ MissingRouteError

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

Since:

  • 2.0.0



36
37
38
# File 'lib/hanami/router/errors.rb', line 36

def initialize(name)
  super("No route could be found with name #{name.inspect}")
end