Exception: FormulaOrCaskUnavailableError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- FormulaOrCaskUnavailableError
- Extended by:
- T::Sig
- Defined in:
- brew/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 ⇒ String
Constructor Details
#initialize(name) ⇒ FormulaOrCaskUnavailableError
Returns a new instance of FormulaOrCaskUnavailableError.
88 89 90 91 92 |
# File 'brew/Library/Homebrew/exceptions.rb', line 88 def initialize(name) super() @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
86 87 88 |
# File 'brew/Library/Homebrew/exceptions.rb', line 86 def name @name end |
Instance Method Details
#to_s ⇒ String
95 96 97 |
# File 'brew/Library/Homebrew/exceptions.rb', line 95 def to_s "No available formula or cask with the name \"#{name}\"." end |