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

#dependentString?

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:



182
183
184
# File 'exceptions.rb', line 182

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:



185
186
187
# File 'exceptions.rb', line 185

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