Class: OpenNebula::Error

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(message = nil) ⇒ Error

message a description of the error



57
58
59
# File 'lib/OpenNebula.rb', line 57

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

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



54
55
56
# File 'lib/OpenNebula.rb', line 54

def message
  @message
end

Instance Method Details

#to_strObject



61
62
63
# File 'lib/OpenNebula.rb', line 61

def to_str()
    @message
end