Exception: Rcon::Error::InvalidPacketTypeError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rcon/error/error.rb

Overview

used for communicating that the packet type is not supported

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(packet_type) ⇒ InvalidPacketTypeError

Parameters:

  • packet_type (Symbol)

    the packet type


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_typeInteger (readonly)

Returns the current value of packet_type.

Returns:

  • (Integer)

    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

#messageString

Returns:

  • (String)

29
30
31
# File 'lib/rcon/error/error.rb', line 29

def message
  "invalid packet_type: #{packet_type}"
end