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

Re: [Libvir] new ruby error handling



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



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