Re: C# bindings raising an error

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

 



You can use the global virSetErrorFunc and try to open a connection to
a non-existing server.

Or open a connection to an existing server but try to call
virDomainLookupByName for a non-existing domain name to demonstrate
the use of virConnectSetErrorFunc.

Matthias

2010/10/29  <arnaud.champion@xxxxxxxxxx>:
> ?I'm not sure, because I want to show usage of virConnectSetErrorFunc which
> take a valid connection pointer.
>
> Arnaud
>
> --------------------------------------------------
> From: "Justin Clift" <jclift@xxxxxxxxxx>
> Sent: Friday, October 29, 2010 10:05 AM
> To: <arnaud.champion@xxxxxxxxxx>
> Cc: <libvir-list@xxxxxxxxxx>
> Subject: Re:  C# bindings raising an error
>
>> On 10/29/2010 06:57 PM, arnaud.champion@xxxxxxxxxx wrote:
>>>
>>> ?Hi,
>>>
>>> I start to work on a new sample code for C# bindings. The goal is to
>>> show how to use errors callbacks... Do you a way to raise an error
>>> for sample ? (I know it's an antagonist request Â)
>>
>> Maybe try to connect to a domain that doesn't exist?
>>
>> Âqemu+ssh://root@xxxxxxxxxxxxxxxxxxx/system
>>
>>
>
> --
> libvir-list mailing list
> libvir-list@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/libvir-list
>

--
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]