Class: OpenNebula::Error
- Inherits:
-
Object
- Object
- OpenNebula::Error
- Defined in:
- lib/OpenNebula.rb
Overview
The Error Class represents a generic error in the OpenNebula library. It contains a readable representation of the error. Any function in the OpenNebula module will return an Error object in case of error.
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(message = nil) ⇒ Error
constructor
messagea description of the error. - #to_str ⇒ Object
Constructor Details
#initialize(message = nil) ⇒ Error
message a description of the error
57 58 59 |
# File 'lib/OpenNebula.rb', line 57 def initialize(=nil) @message= end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
54 55 56 |
# File 'lib/OpenNebula.rb', line 54 def @message end |
Instance Method Details
#to_str ⇒ Object
61 62 63 |
# File 'lib/OpenNebula.rb', line 61 def to_str() @message end |