[Libvir] Need Help on Error handling.

Ajishrao.r ajishrao at gmail.com
Sun Mar 9 17:22:33 UTC 2008

      I am using libvirt to manage, The Hypervisor, Can Any one Help me
about handling error? My main questions are.

---  What is Library level Error Handling?
---  Any Example to use

void	virSetErrorFunc			(void * userData,virErrorFunc
<http://libvirt.org/html/libvirt-virterror.html#virErrorFunc> handler)

--- What is the difference between these two funtions?

int	virConnCopyLastError		(virConnectPtr
<http://libvirt.org/html/libvirt-virterror.html#virErrorPtr> to)
virErrorPtr <http://libvirt.org/html/libvirt-virterror.html#virErrorPtr>	virConnGetLastError	(virConnectPtr
<http://libvirt.org/html/libvirt-libvirt.html#virConnectPtr> conn)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20080309/38b53f16/attachment-0001.htm>

More information about the libvir-list mailing list