Exception: Rcon::Error::InvalidPacketTypeError
- Inherits:
-
StandardError
- Object
- StandardError
- Rcon::Error::InvalidPacketTypeError
- Defined in:
- lib/rcon/error/error.rb
Overview
used for communicating that the packet type is not supported
Instance Attribute Summary collapse
-
#packet_type ⇒ Integer
readonly
The current value of packet_type.
Instance Method Summary collapse
Constructor Details
#initialize(packet_type) ⇒ InvalidPacketTypeError
21 22 23 24 |
# File 'lib/rcon/error/error.rb', line 21 def initialize(packet_type) @packet_type = packet_type super end |
Instance Attribute Details
#packet_type ⇒ Integer (readonly)
Returns the current value of packet_type.
18 19 20 |
# File 'lib/rcon/error/error.rb', line 18 def packet_type @packet_type end |
Instance Method Details
#message ⇒ String
29 30 31 |
# File 'lib/rcon/error/error.rb', line 29 def "invalid packet_type: #{packet_type}" end |