Exception: FormulaUnavailableError

Inherits:
FormulaOrCaskUnavailableError show all
Defined in:
exceptions.rb

Overview

This class is part of an internal API. This class may only be used internally in repositories owned by Homebrew, except in casks or formulae. Third parties should avoid using this class if possible, as it may be removed or changed without warning.

Raised when a formula is not available.

Instance Attribute Summary collapse

Attributes inherited from FormulaOrCaskUnavailableError

#name

Instance Method Summary collapse

Methods inherited from FormulaOrCaskUnavailableError

#did_you_mean, #initialize

Constructor Details

This class inherits a constructor from FormulaOrCaskUnavailableError

Instance Attribute Details

#dependentObject

This method is part of an internal API. This method may only be used internally in repositories owned by Homebrew, except in casks or formulae. Third parties should avoid using this method if possible, as it may be removed or changed without warning.



142
143
144
# File 'exceptions.rb', line 142

def dependent
  @dependent
end

Instance Method Details

#dependent_sString?

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:



145
146
147
# File 'exceptions.rb', line 145

def dependent_s
  " (dependency of #{dependent})" if dependent && dependent != name
end