Exception: ChefCLI::InvalidPolicyfileSourceURI
- Inherits:
-
StandardError
- Object
- StandardError
- ChefCLI::InvalidPolicyfileSourceURI
- Defined in:
- lib/chef-cli/exceptions.rb
Instance Method Summary collapse
-
#initialize(url, reason = nil) ⇒ InvalidPolicyfileSourceURI
constructor
A new instance of InvalidPolicyfileSourceURI.
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 |