Exception: DuplicateResourceError
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- DuplicateResourceError
- Defined in:
- Library/Homebrew/exceptions.rb
Overview
Raised when a resource is specified multiple times.
Instance Method Summary collapse
-
#initialize(resource) ⇒ DuplicateResourceError
constructor
A new instance of DuplicateResourceError.
Constructor Details
#initialize(resource) ⇒ DuplicateResourceError
Returns a new instance of DuplicateResourceError.
621 622 623 |
# File 'Library/Homebrew/exceptions.rb', line 621 def initialize(resource) super "Resource #{resource.inspect} is defined more than once" end |