Exception: FormulaUnavailableError

Inherits:
FormulaOrCaskUnavailableError show all
Extended by:
T::Sig
Defined in:
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

#did_you_mean, #initialize

Constructor Details

This class inherits a constructor from FormulaOrCaskUnavailableError

Instance Attribute Details

#dependentObject

Returns the value of attribute dependent.



131
132
133
# File 'exceptions.rb', line 131

def dependent
  @dependent
end

Instance Method Details

#dependent_sString?

Returns:



134
135
136
# File 'exceptions.rb', line 134

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

#to_sString

Returns:



139
140
141
# File 'exceptions.rb', line 139

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