Exception: TeamSpeak3::Exceptions::VirtualServerNotRunning

Inherits:
StandardException show all
Defined in:
lib/exceptions/virtual_server_not_running.rb

Instance Attribute Summary collapse

Attributes inherited from StandardException

#message

Instance Method Summary collapse

Methods inherited from StandardException

#to_s

Constructor Details

#initialize(server_id) ⇒ VirtualServerNotRunning

Returns a new instance of VirtualServerNotRunning.



6
7
8
9
# File 'lib/exceptions/virtual_server_not_running.rb', line 6

def initialize(server_id)
  @server_id = server_id
  @message = 'The virtual server is not running'
end

Instance Attribute Details

#server_idObject (readonly)

Returns the value of attribute server_id.



4
5
6
# File 'lib/exceptions/virtual_server_not_running.rb', line 4

def server_id
  @server_id
end