Exception: FormulaValidationError Private

Inherits:
StandardError
  • Object
show all
Defined in:
exceptions.rb

Overview

This class is part of a private API. This class may only be used in the Homebrew/brew repository. Third parties should avoid using this class if possible, as it may be removed or changed without warning.

Raised when an invalid attribute is used in a formula.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(formula, attr, value) ⇒ FormulaValidationError

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Returns a new instance of FormulaValidationError.



71
72
73
74
75
# File 'exceptions.rb', line 71

def initialize(formula, attr, value)
  @attr = attr
  @formula = formula
  super "invalid attribute for formula '#{formula}': #{attr} (#{value.inspect})"
end

Instance Attribute Details

#attrObject (readonly)

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.



69
70
71
# File 'exceptions.rb', line 69

def attr
  @attr
end

#formulaObject (readonly)

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.



69
70
71
# File 'exceptions.rb', line 69

def formula
  @formula
end