Exception: VBox::WebService::ConnectionError

Inherits:
Error
  • Object
show all
Defined in:
lib/virtualbox/exceptions.rb

Direct Known Subclasses

NoWebServiceError

Instance Method Summary collapse

Constructor Details

#initialize(endpoint, message) ⇒ ConnectionError

Returns a new instance of ConnectionError.



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

def initialize(endpoint, message)
  @endpoint = endpoint
  @message = message
end

Instance Method Details

#to_sObject



11
12
13
# File 'lib/virtualbox/exceptions.rb', line 11

def to_s
  "Could not connect to VirtualBox SOAP Web Service at #{@endpoint}. #{@message}"
end