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.


254
255
256
257
258
259
260
261
262
263
# File 'Library/Homebrew/exceptions.rb', line 254

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


252
253
254
# File 'Library/Homebrew/exceptions.rb', line 252

def actual_remote
  @actual_remote
end

#expected_remoteObject (readonly)

Returns the value of attribute expected_remote


252
253
254
# File 'Library/Homebrew/exceptions.rb', line 252

def expected_remote
  @expected_remote
end

#nameObject (readonly)

Returns the value of attribute name


252
253
254
# File 'Library/Homebrew/exceptions.rb', line 252

def name
  @name
end