Exception: FormulaUnavailableError

Inherits:
FormulaOrCaskUnavailableError show all
Extended by:
T::Sig
Defined in:
Library/Homebrew/exceptions.rb

Overview

Raised when a formula is not available.

Instance Attribute Summary collapse

Attributes inherited from FormulaOrCaskUnavailableError

#name

Instance Method Summary collapse

Methods inherited from FormulaOrCaskUnavailableError

#initialize

Constructor Details

This class inherits a constructor from FormulaOrCaskUnavailableError

Instance Attribute Details

#dependentObject

Returns the value of attribute dependent


123
124
125
# File 'Library/Homebrew/exceptions.rb', line 123

def dependent
  @dependent
end

Instance Method Details

#dependent_sObject


126
127
128
# File 'Library/Homebrew/exceptions.rb', line 126

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

#to_sObject


131
132
133
# File 'Library/Homebrew/exceptions.rb', line 131

def to_s
  "No available formula with the name \"#{name}\"#{dependent_s}."
end