class OpenNebula::Error

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.

Constants

EACTION
EAUTHENTICATION
EAUTHORIZATION
EINTERNAL
ENOTDEFINED
ENO_EXISTS
ESUCCESS
EXML_RPC_API

Attributes

errno[R]
message[R]

Public Class Methods

new(message=nil, errno=0x1111) click to toggle source

message Description of the error errno OpenNebula code error

# File lib/opennebula/error.rb, line 37
def initialize(message=nil, errno=0x1111)
    @message = message
    @errno   = errno
end

Public Instance Methods

to_str() click to toggle source
# File lib/opennebula/error.rb, line 42
def to_str()
    @message
end