Exception: Razor::CLI::InvalidURIError

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

Instance Method Summary collapse

Constructor Details

#initialize(url, type) ⇒ InvalidURIError

Returns a new instance of InvalidURIError.



17
18
19
20
21
22
23
24
25
26
# File 'lib/razor/cli.rb', line 17

def initialize(url, type)
  case type
  when :env
    super "URL '#{url}' in ENV variable RAZOR_API is not valid"
  when :opts
    super "URL '#{url}' provided by -u or --url is not valid"
  else
    super "URL '#{url}' is not valid"
  end
end