Exception: Hanami::Router::InvalidRouteExpansionError

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

Overview

Error raised when variables given for route cannot be expanded into a full path.

See Also:

Since:

  • 2.0.0

Instance Method Summary collapse

Constructor Details

#initialize(name, message) ⇒ InvalidRouteExpansionError

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

Since:

  • 2.0.0



51
52
53
# File 'lib/hanami/router/errors.rb', line 51

def initialize(name, message)
  super("No route could be generated for `#{name.inspect}': #{message}")
end