Exception: FormulaOrCaskUnavailableError

Inherits:
RuntimeError
  • Object
show all
Extended by:
T::Sig
Defined in:
exceptions.rb

Overview

Raised when neither a formula nor a cask with the given name is available.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ FormulaOrCaskUnavailableError

Returns a new instance of FormulaOrCaskUnavailableError.



88
89
90
91
92
# File 'exceptions.rb', line 88

def initialize(name)
  super()

  @name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



86
87
88
# File 'exceptions.rb', line 86

def name
  @name
end

Instance Method Details

#to_sString

Returns:



95
96
97
# File 'exceptions.rb', line 95

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