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

Copyright (C) 2006 Red Hat Copyright (C) 2006-2007 Daniel P. Berrange

LICENSE

This program is free software; you can redistribute it and/or modify it under the terms of either the GNU General Public License as published by the Free Software Foundation (either version 2 of the License, or at your option any later version), or, the Artistic License, as specified in the Perl README file.

SEE ALSO

Sys::Virt::Domain, Sys::Virt, http://libvirt.org