Exception: Razor::CLI::NavigationError

Inherits:
Error
  • Object
show all
Defined in:
lib/razor/cli.rb

Instance Method Summary collapse

Constructor Details

#initialize(url, key, doc) ⇒ NavigationError

Returns a new instance of NavigationError.



6
7
8
9
10
11
12
13
# File 'lib/razor/cli.rb', line 6

def initialize(url, key, doc)
  @key = key; @doc = doc
  if key.is_a?(Array)
    super _("Could not navigate to '%{path}' from %{url}") % {path: key.join(" "), url: url}
  else
    super _("Could not find entry '%{key}' in document at %{url}") % {key: key, url: url}
  end
end