Exception: Migrator::MigratorNoOldnameError Private

Inherits:
RuntimeError
  • Object
show all
Defined in:
migrator.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.

Error for when a formula does not replace another formula.

Instance Method Summary collapse

Constructor Details

#initialize(formula) ⇒ MigratorNoOldnameError

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



28
29
30
# File 'migrator.rb', line 28

def initialize(formula)
  super "#{formula.name} doesn't replace any formula."
end