Exception: FormulaValidationError
- Inherits:
-
StandardError
- Object
- StandardError
- FormulaValidationError
- Defined in:
- Library/Homebrew/exceptions.rb
Overview
Raised when an invalid attribute is used in a formula.
Instance Attribute Summary collapse
-
#attr ⇒ Object
readonly
Returns the value of attribute attr.
-
#formula ⇒ Object
readonly
Returns the value of attribute formula.
Instance Method Summary collapse
-
#initialize(formula, attr, value) ⇒ FormulaValidationError
constructor
A new instance of FormulaValidationError.
Constructor Details
#initialize(formula, attr, value) ⇒ FormulaValidationError
Returns a new instance of FormulaValidationError.
63 64 65 66 67 |
# File 'Library/Homebrew/exceptions.rb', line 63 def initialize(formula, attr, value) @attr = attr @formula = formula super "invalid attribute for formula '#{formula}': #{attr} (#{value.inspect})" end |
Instance Attribute Details
#attr ⇒ Object (readonly)
Returns the value of attribute attr
61 62 63 |
# File 'Library/Homebrew/exceptions.rb', line 61 def attr @attr end |
#formula ⇒ Object (readonly)
Returns the value of attribute formula
61 62 63 |
# File 'Library/Homebrew/exceptions.rb', line 61 def formula @formula end |