Re: Need Help on Error handling.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks for the reply, I will see it and then will let you know.

On Mon, Mar 10, 2008 at 6:23 PM, Chris Lalancette <clalance@xxxxxxxxxx> wrote:
Richard W.M. Jones wrote:
> On Sun, Mar 09, 2008 at 10:52:33PM +0530, Ajishrao.r wrote:
>> Hi,
>>       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)
>
> I'm not aware of any example code which uses this.

Actually, there is example code right in the libvirt source tree.  In
src/virsh.c, virSetErrorFunc() is used to set up the virshErrorHandler callback.
 I've used that as an example before for my own code :).

Chris Lalancette



--
Thanks&Regards
Ajeesh
--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]