Exception: Siding::Protocol::VersionMismatch
- Inherits:
-
ProtocolError
- Object
- StandardError
- Error
- ProtocolError
- Siding::Protocol::VersionMismatch
- Defined in:
- lib/siding/protocol.rb
Instance Attribute Summary collapse
-
#client_version ⇒ Object
readonly
Returns the value of attribute client_version.
-
#server_version ⇒ Object
readonly
Returns the value of attribute server_version.
Instance Method Summary collapse
-
#initialize(server_version:, client_version: VERSION) ⇒ VersionMismatch
constructor
A new instance of VersionMismatch.
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_version ⇒ Object (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_version ⇒ Object (readonly)
Returns the value of attribute server_version.
38 39 40 |
# File 'lib/siding/protocol.rb', line 38 def server_version @server_version end |