Exception: TeamSpeak3::Exceptions::VirtualServerAlreadyRunning

Inherits:
StandardException
  • Object
show all
Defined in:
lib/exceptions/virtual_server_already_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) ⇒ VirtualServerAlreadyRunning

Returns a new instance of VirtualServerAlreadyRunning.



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

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

Instance Attribute Details

#server_idObject (readonly)

Returns the value of attribute server_id.



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

def server_id
  @server_id
end