Class: CloudClient::Error
- Inherits:
-
Object
- Object
- CloudClient::Error
- 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
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(message = nil, code = "500") ⇒ Error
constructor
message
a description of the error. - #to_s ⇒ Object
Constructor Details
#initialize(message = nil, code = "500") ⇒ Error
message
a description of the error
131 132 133 134 |
# File 'lib/deltacloud/drivers/opennebula/cloud_client.rb', line 131 def initialize(=nil, code="500") = @code=code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
128 129 130 |
# File 'lib/deltacloud/drivers/opennebula/cloud_client.rb', line 128 def code @code end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
127 128 129 |
# File 'lib/deltacloud/drivers/opennebula/cloud_client.rb', line 127 def end |
Instance Method Details
#to_s ⇒ Object
136 137 138 |
# File 'lib/deltacloud/drivers/opennebula/cloud_client.rb', line 136 def to_s() end |