[Libvir] new ruby error handling

David Lutterkort dlutter at redhat.com
Fri Apr 11 17:15:22 UTC 2008


On Thu, 2008-04-10 at 23:28 -0700, Vadim Zaliva wrote:
> I have a dumb question about new error handling. What is the rationale  
> for using
> 'libvirt_message' instead of 'message' in new Libvirt Ruby error  
> classes?

The 'message' in the exception is set, too, usually to the name of the
libvirt function that returned the error. libvirt_message stores
additional error details from virError, which is not always available.

That's how it works at the moment, but I am open to suggestions to
change that.

David





More information about the libvir-list mailing list