Exception: FormulaOrCaskUnavailableError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- FormulaOrCaskUnavailableError
- Defined in:
- Library/Homebrew/exceptions.rb
Overview
Raised when neither a formula nor a cask with the given name is available.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ FormulaOrCaskUnavailableError
constructor
A new instance of FormulaOrCaskUnavailableError.
- #to_s ⇒ Object
Constructor Details
#initialize(name) ⇒ FormulaOrCaskUnavailableError
Returns a new instance of FormulaOrCaskUnavailableError.
83 84 85 86 87 |
# File 'Library/Homebrew/exceptions.rb', line 83 def initialize(name) super() @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name
81 82 83 |
# File 'Library/Homebrew/exceptions.rb', line 81 def name @name end |
Instance Method Details
#to_s ⇒ Object
89 90 91 |
# File 'Library/Homebrew/exceptions.rb', line 89 def to_s "No available formula or cask with the name \"#{name}\"." end |