Exception: TapRemoteMismatchError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, expected_remote, actual_remote) ⇒ TapRemoteMismatchError

Returns a new instance of TapRemoteMismatchError



233
234
235
236
237
238
239
240
241
242
# File 'Library/Homebrew/exceptions.rb', line 233

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



231
232
233
# File 'Library/Homebrew/exceptions.rb', line 231

def actual_remote
  @actual_remote
end

#expected_remoteObject (readonly)

Returns the value of attribute expected_remote



230
231
232
# File 'Library/Homebrew/exceptions.rb', line 230

def expected_remote
  @expected_remote
end

#nameObject (readonly)

Returns the value of attribute name



229
230
231
# File 'Library/Homebrew/exceptions.rb', line 229

def name
  @name
end