Exception: ChefCLI::InvalidPolicyfileSourceURI

Inherits:
StandardError
  • Object
show all
Defined in:
lib/chef-cli/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(url, reason = nil) ⇒ InvalidPolicyfileSourceURI

Returns a new instance of InvalidPolicyfileSourceURI.



62
63
64
65
66
67
68
# File 'lib/chef-cli/exceptions.rb', line 62

def initialize(url, reason = nil)
  @url    = url
  @reason = reason
  msg     = "'#{@url}' is not a valid Policyfile Source URI"
  msg << " #{@reason}." unless @reason.nil?
  super(msg)
end