Class: CloudClient::Error

Inherits:
Object
  • Object
show all
Defined in:
lib/deltacloud/drivers/opennebula/cloud_client.rb

Overview

######################################################################### The Error Class represents a generic error in the Cloud Client library. It contains a readable representation of the error. #########################################################################

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil) ⇒ Error

message a description of the error



92
93
94
# File 'lib/deltacloud/drivers/opennebula/cloud_client.rb', line 92

def initialize(message=nil)
    @message=message
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



89
90
91
# File 'lib/deltacloud/drivers/opennebula/cloud_client.rb', line 89

def message
  @message
end

Instance Method Details

#to_sObject



96
97
98
# File 'lib/deltacloud/drivers/opennebula/cloud_client.rb', line 96

def to_s()
    @message
end