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



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

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



80
81
82
# File 'lib/rcon/error/error.rb', line 80

def response_type
  @response_type
end

Instance Method Details

#messageString

Returns:

  • (String)


90
91
92
# File 'lib/rcon/error/error.rb', line 90

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