Class: OpenNebula::Error
- Inherits:
-
Object
- Object
- OpenNebula::Error
- Defined in:
- lib/OpenNebula/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.
Constant Summary
- ESUCCESS =
0x0000- EAUTHENTICATION =
0x0100- EAUTHORIZATION =
0x0200- ENO_EXISTS =
0x0400- EACTION =
0x0800- EXML_RPC_API =
0x1000- EINTERNAL =
0x2000- ENOTDEFINED =
0x1111
Instance Attribute Summary (collapse)
-
- (Object) errno
readonly
Returns the value of attribute errno.
-
- (Object) message
readonly
Returns the value of attribute message.
Instance Method Summary (collapse)
-
- (Error) initialize(message = nil, errno = 0x1111)
constructor
+message+ Description of the error +errno+ OpenNebula code error.
- - (Object) to_str
Constructor Details
- (Error) initialize(message = nil, errno = 0x1111)
+message+ Description of the error +errno+ OpenNebula code error
66 67 68 69 |
# File 'lib/OpenNebula/OpenNebula.rb', line 66 def initialize(=nil, errno=0x1111) @message = @errno = errno end |
Instance Attribute Details
- (Object) errno (readonly)
Returns the value of attribute errno
62 63 64 |
# File 'lib/OpenNebula/OpenNebula.rb', line 62 def errno @errno end |
- (Object) message (readonly)
Returns the value of attribute message
62 63 64 |
# File 'lib/OpenNebula/OpenNebula.rb', line 62 def @message end |
Instance Method Details
- (Object) to_str
71 72 73 |
# File 'lib/OpenNebula/OpenNebula.rb', line 71 def to_str() @message end |