Class: OvirtSDK4::Error
- Inherits:
-
Object
- Object
- OvirtSDK4::Error
- Defined in:
- lib/ovirtsdk4/errors.rb
Overview
The base class for all errors raised by the SDK.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#code ⇒ Integer
An error code associated to the error.
-
#fault ⇒ Fault
The
Fault
object associated to the error.
Instance Attribute Details
#code ⇒ Integer
An error code associated to the error. For HTTP related errors, this will be the HTTP response code returned by
the server. For example, if retrieving of a virtual machine fails because it doesn’t exist this attribute will
contain the integer value 404. Note that this may be nil
if the error is not HTTP related.
29 30 31 |
# File 'lib/ovirtsdk4/errors.rb', line 29 def code @code end |
#fault ⇒ Fault
The Fault
object associated to the error.
36 37 38 |
# File 'lib/ovirtsdk4/errors.rb', line 36 def fault @fault end |