NAME
Sys::Virt::Error - error object for libvirt APIs
DESCRIPTION
The Sys::Virt::Error
class provides an encoding of the libvirt errors. Instances of this object can be thrown by pretty much any of the Sys::Virt APIs.
METHODS
- $err->stringify
-
Convert the object into string format suitable for printing on a console to inform a user of the error.
- my $code = $err->code
-
Return the raw error code represented by this error
- my $msg = $err->message
-
Return an informative message describing the error condition.
AUTHORS
Daniel P. Berrange <berrange@redhat.com>
COPYRIGHT / LICENSE
Copyright (C) 2006 Red Hat
Sys::Virt is distributed under the terms of the GPLv2 or later
SEE ALSO
Sys::Virt::Domain, Sys::Virt, http://libvirt.org