Exception: TapRemoteMismatchError

Inherits:
RuntimeError
  • Object
show all
Defined in:
Library/Homebrew/exceptions.rb

Overview

Raised when a tap's remote does not match the actual remote.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, expected_remote, actual_remote) ⇒ TapRemoteMismatchError

Returns a new instance of TapRemoteMismatchError.


270
271
272
273
274
275
276
277
278
279
# File 'Library/Homebrew/exceptions.rb', line 270

def initialize(name, expected_remote, actual_remote)
  @name = name
  @expected_remote = expected_remote
  @actual_remote = actual_remote

  super <<~EOS
    Tap #{name} remote mismatch.
    #{expected_remote} != #{actual_remote}
  EOS
end

Instance Attribute Details

#actual_remoteObject (readonly)

Returns the value of attribute actual_remote


268
269
270
# File 'Library/Homebrew/exceptions.rb', line 268

def actual_remote
  @actual_remote
end

#expected_remoteObject (readonly)

Returns the value of attribute expected_remote


268
269
270
# File 'Library/Homebrew/exceptions.rb', line 268

def expected_remote
  @expected_remote
end

#nameObject (readonly)

Returns the value of attribute name


268
269
270
# File 'Library/Homebrew/exceptions.rb', line 268

def name
  @name
end