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.



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

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

Instance Method Details

#to_sObject



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

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