Exception: Libvirt::Exception::LibvirtError

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

Instance Method Summary (collapse)

Constructor Details

- (LibvirtError) initialize(error)

A new instance of LibvirtError



13
14
15
16
# File 'lib/libvirt/exception.rb', line 13

def initialize(error)
  @error = error
  super(error.message)
end

Instance Attribute Details

- (Object) error (readonly)

Returns the value of attribute error



11
12
13
# File 'lib/libvirt/exception.rb', line 11

def error
  @error
end