Re: Adding Bonobo::GeneralError exception to Bonobo::Moniker::resolve ?



jacob berkman <jacob ximian com> writes:

> On Wed, 2001-08-29 at 11:47, Martin Baulig wrote:
> > Hi Michael,
> > 
> > can we add a Bonobo::GeneralError exception or anything equivalent to
> > the Bonobo::Moniker::resolve method ?
> > 
> > I need this for my ditem moniker and it may be useful for the other config
> > monikers as well - when reading the file fails, I want to return an error
> > message rather than just returning CORBA_OBJECT_NIL.
> 
> this makes sense - sometimes the component can't be activated, and the
> only exception you can return is interface not found (which is quite
> different).
> 
> i almost think that all exceptions would want to have an error message. 
> i can't really think of a reason not to have this (other than lazy
> hackers[1]).

Well, at least Bonobo::PropertyBag::BackendFailed needs an error message -
but I don't think it makes sense for NotFound, InvalidType and ReadOnly..

-- 
Martin Baulig
martin gnome org (private)
baulig suse de (work)




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