Exception: Libvirt::Exception::LibvirtError
- Inherits:
-
StandardError
- Object
- StandardError
- Libvirt::Exception::LibvirtError
- Defined in:
- lib/libvirt/exception.rb
Overview
Represents an exceptional event within the Libvirt library.
This contains an error
readable attribute which, if available,
is a Libvirt::Error object, which contains more details
about the error which occurred.
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
Instance Method Summary collapse
-
#initialize(error) ⇒ LibvirtError
constructor
A new instance of LibvirtError.
Constructor Details
#initialize(error) ⇒ LibvirtError
Returns a new instance of LibvirtError.
13 14 15 16 |
# File 'lib/libvirt/exception.rb', line 13 def initialize(error) @error = error super(error.) end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
11 12 13 |
# File 'lib/libvirt/exception.rb', line 11 def error @error end |