Exception: Rcon::Error::InvalidResponsePacketTypeCodeError

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

Overview

used for communicating that the integer packet type code is not supported

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type_code) ⇒ InvalidResponsePacketTypeCodeError

Parameters:

  • type_code (Integer)

    packet type code


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

Returns the current value of type_code.

Returns:

  • (Integer)

    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

#messageString

Returns:

  • (String)

48
49
50
# File 'lib/rcon/error/error.rb', line 48

def message
  "invalid response packet type code: #{type_code}"
end