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 '#{key.join(" ")}' from #{url}"
  else
    super "Could not find entry '#{key}' in document at #{url}"
  end
end