Exception: TapRemoteMismatchError

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



305
306
307
308
309
310
311
312
313
314
# File 'exceptions.rb', line 305

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.



303
304
305
# File 'exceptions.rb', line 303

def actual_remote
  @actual_remote
end

#expected_remoteObject (readonly)

Returns the value of attribute expected_remote.



303
304
305
# File 'exceptions.rb', line 303

def expected_remote
  @expected_remote
end

#nameObject (readonly)

Returns the value of attribute name.



303
304
305
# File 'exceptions.rb', line 303

def name
  @name
end