Exception: Razor::CLI::NavigationError
- Defined in:
- lib/razor/cli.rb
Instance Method Summary collapse
-
#initialize(url, key, doc) ⇒ NavigationError
constructor
A new instance of NavigationError.
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 |