Exception: Fig::URLAccessDisallowedError
- Inherits:
-
UserInputError
- Object
- StandardError
- UserInputError
- Fig::URLAccessDisallowedError
- Defined in:
- lib/fig/url_access_disallowed_error.rb
Overview
Package definition attempted to specify a URL outside of the whitelist.
Instance Attribute Summary collapse
-
#descriptor ⇒ Object
readonly
Returns the value of attribute descriptor.
-
#urls ⇒ Object
readonly
Returns the value of attribute urls.
Instance Method Summary collapse
-
#initialize(urls, descriptor) ⇒ URLAccessDisallowedError
constructor
A new instance of URLAccessDisallowedError.
- #message ⇒ Object
Constructor Details
#initialize(urls, descriptor) ⇒ URLAccessDisallowedError
Returns a new instance of URLAccessDisallowedError.
10 11 12 13 |
# File 'lib/fig/url_access_disallowed_error.rb', line 10 def initialize(urls, descriptor) @urls = urls @descriptor = descriptor end |
Instance Attribute Details
#descriptor ⇒ Object (readonly)
Returns the value of attribute descriptor.
8 9 10 |
# File 'lib/fig/url_access_disallowed_error.rb', line 8 def descriptor @descriptor end |
#urls ⇒ Object (readonly)
Returns the value of attribute urls.
8 9 10 |
# File 'lib/fig/url_access_disallowed_error.rb', line 8 def urls @urls end |
Instance Method Details
#message ⇒ Object
15 16 17 18 |
# File 'lib/fig/url_access_disallowed_error.rb', line 15 def "URLAccessDisallowedError:\n descriptor = #{descriptor.inspect}\n urls = " + @urls.map { |k,v| " - #{k}: #{v.inspect}" }.join("\n ") end |