Exception: Rcon::Error::InvalidResponsePacketTypeCodeError
- Inherits:
-
StandardError
- Object
- StandardError
- Rcon::Error::InvalidResponsePacketTypeCodeError
- Defined in:
- lib/rcon/error/error.rb
Overview
used for communicating that the integer packet type code is not supported
Instance Attribute Summary collapse
-
#type_code ⇒ Integer
readonly
The current value of type_code.
Instance Method Summary collapse
Constructor Details
#initialize(type_code) ⇒ InvalidResponsePacketTypeCodeError
40 41 42 43 |
# File 'lib/rcon/error/error.rb', line 40 def initialize(type_code) @type_code = type_code super end |
Instance Attribute Details
#type_code ⇒ Integer (readonly)
Returns the current value of type_code.
37 38 39 |
# File 'lib/rcon/error/error.rb', line 37 def type_code @type_code end |
Instance Method Details
#message ⇒ String
48 49 50 |
# File 'lib/rcon/error/error.rb', line 48 def "invalid response packet type code: #{type_code}" end |