Exception: Rcon::Error::UnsupportedResponseTypeError

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

Overview

used for communicating that the response type of the packet is unsupported

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response_type) ⇒ UnsupportedResponseTypeError

Parameters:

  • response_type (Symbol)

    the response type


75
76
77
# File 'lib/rcon/error/error.rb', line 75

def initialize(response_type)
  @response_type = response_type
end

Instance Attribute Details

#response_typeSymbol (readonly)

Returns the current value of response_type.

Returns:

  • (Symbol)

    the current value of response_type


72
73
74
# File 'lib/rcon/error/error.rb', line 72

def response_type
  @response_type
end

Instance Method Details

#messageString

Returns:

  • (String)

82
83
84
# File 'lib/rcon/error/error.rb', line 82

def message
  "unsupported response type: #{response_type}"
end