Exception: Siding::Protocol::VersionMismatch

Inherits:
ProtocolError show all
Defined in:
lib/siding/protocol.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(server_version:, client_version: VERSION) ⇒ VersionMismatch

Returns a new instance of VersionMismatch.



40
41
42
43
44
# File 'lib/siding/protocol.rb', line 40

def initialize(server_version:, client_version: VERSION)
  @server_version = server_version
  @client_version = client_version
  super("server speaks protocol version #{server_version}, this client speaks #{client_version}")
end

Instance Attribute Details

#client_versionObject (readonly)

Returns the value of attribute client_version.



38
39
40
# File 'lib/siding/protocol.rb', line 38

def client_version
  @client_version
end

#server_versionObject (readonly)

Returns the value of attribute server_version.



38
39
40
# File 'lib/siding/protocol.rb', line 38

def server_version
  @server_version
end