Exception: Razor::CLI::InvalidURIError
- Defined in:
- lib/razor/cli.rb
Instance Method Summary collapse
-
#initialize(url, type) ⇒ InvalidURIError
constructor
A new instance of InvalidURIError.
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") % {url: url} when :opts super _("URL '%{url}' provided by -u or --url is not valid") % {url: url} else super _("URL '%{url}' is not valid") % {url: url} end end |