
?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 ) Regards, Arnaud

On 10/29/2010 06:57 PM, arnaud.champion@devatom.fr 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@mistake.example.org/system

?I'm not sure, because I want to show usage of virConnectSetErrorFunc which take a valid connection pointer. Arnaud -------------------------------------------------- From: "Justin Clift" <jclift@redhat.com> Sent: Friday, October 29, 2010 10:05 AM To: <arnaud.champion@devatom.fr> Cc: <libvir-list@redhat.com> Subject: Re: [libvirt] C# bindings raising an error
On 10/29/2010 06:57 PM, arnaud.champion@devatom.fr 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@mistake.example.org/system

?Maybe I found a way : open a read only connection and make a thing which need a normal connection ? -------------------------------------------------- From: <arnaud.champion@devatom.fr> Sent: Friday, October 29, 2010 10:12 AM To: "Justin Clift" <jclift@redhat.com> Cc: <libvir-list@redhat.com> Subject: Re: [libvirt] C# bindings raising an error
?I'm not sure, because I want to show usage of virConnectSetErrorFunc which take a valid connection pointer.
Arnaud
-------------------------------------------------- From: "Justin Clift" <jclift@redhat.com> Sent: Friday, October 29, 2010 10:05 AM To: <arnaud.champion@devatom.fr> Cc: <libvir-list@redhat.com> Subject: Re: [libvirt] C# bindings raising an error
On 10/29/2010 06:57 PM, arnaud.champion@devatom.fr 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@mistake.example.org/system
-- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

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@devatom.fr>:
?I'm not sure, because I want to show usage of virConnectSetErrorFunc which take a valid connection pointer.
Arnaud
-------------------------------------------------- From: "Justin Clift" <jclift@redhat.com> Sent: Friday, October 29, 2010 10:05 AM To: <arnaud.champion@devatom.fr> Cc: <libvir-list@redhat.com> Subject: Re: [libvirt] C# bindings raising an error
On 10/29/2010 06:57 PM, arnaud.champion@devatom.fr 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@mistake.example.org/system
-- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

Perfect ! go for the 2nd one. Arnaud -------------------------------------------------- From: "Matthias Bolte" <matthias.bolte@googlemail.com> Sent: Friday, October 29, 2010 10:35 AM To: <arnaud.champion@devatom.fr> Cc: "Justin Clift" <jclift@redhat.com>; <libvir-list@redhat.com> Subject: Re: [libvirt] C# bindings raising an error
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@devatom.fr>:
?I'm not sure, because I want to show usage of virConnectSetErrorFunc which take a valid connection pointer.
Arnaud
-------------------------------------------------- From: "Justin Clift" <jclift@redhat.com> Sent: Friday, October 29, 2010 10:05 AM To: <arnaud.champion@devatom.fr> Cc: <libvir-list@redhat.com> Subject: Re: [libvirt] C# bindings raising an error
On 10/29/2010 06:57 PM, arnaud.champion@devatom.fr 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@mistake.example.org/system
-- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
participants (3)
-
arnaud.champion@devatom.fr
-
Justin Clift
-
Matthias Bolte