Exception: FormulaUnreadableError Private

Inherits:
FormulaUnavailableError show all
Includes:
FormulaUnreadableErrorModule
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 a formula is unreadable.

Instance Attribute Summary

Attributes included from FormulaUnreadableErrorModule

#formula_error

Attributes inherited from FormulaUnavailableError

#dependent

Attributes inherited from FormulaOrCaskUnavailableError

#name

Instance Method Summary collapse

Methods inherited from FormulaUnavailableError

#dependent_s

Methods inherited from FormulaOrCaskUnavailableError

#did_you_mean

Constructor Details

#initialize(name, error) ⇒ FormulaUnreadableError

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 FormulaUnreadableError.



212
213
214
215
216
# File 'exceptions.rb', line 212

def initialize(name, error)
  super(name)
  @formula_error = error
  set_backtrace(error.backtrace)
end