This is already in CVS, as ErrorHandler interface. I've reworked a lot
of code and messages (since the ErrorHandler will consistently report
the location of the error, if known). This makes the actual error
messages more readible.

I haven't put together a standard "brittle" implementation yet but
it's literally a few lines of code.

On Fri, 2 Jul 2004 05:04:11 -0700, Stefan Liebig
<[EMAIL PROTECTED]> wrote:
> 
> Howard,
> 
> do you remember this (see below). Will it be part of beta-1?
> 
> Stefan
> 
> -----"Howard M. Lewis Ship" <[EMAIL PROTECTED]> wrote: -----
> 
> To: <[email protected]>
> From: "Howard M. Lewis Ship" <[EMAIL PROTECTED]>
> Date: 03.06.2004 17:17
> Subject: RE: ErrorHandler
> 
> Not a bad idea, i.e.
> 
> public interface ProblemHandler
> {
> public void reportProblem(Log log, String message, Location location, 
> Throwable exception);
> }
> 
> Default impl will simply use the log; paranoid implementation will throw an
> ApplicationRuntimeException.
> 
> --
> Howard M. Lewis Ship
> Independent J2EE / Open-Source Java Consultant
> Creator, Jakarta Tapestry
> Creator, Jakarta HiveMind
> http://howardlewisship.com <http://howardlewisship.com>
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, June 03, 2004 10:09 AM
> > To: [email protected]
> > Subject: ErrorHandler
> >
> >
> >
> > I would need something similar to the error handler in hivemind.
> > Something like a problem handler, which could also be passed to the
> > RegistryBuilder like the ErrorHandler.
> > The ProblemHandler would get all problems reported during construction
> > of the registry. With that it would be possible to define custom
> > policies on how to deal with problems like
> > "No module has contributed a service constructor for service extension
> > point ...".
> > When running the appication in a "strict mode" the problem handler
> > could throw a runtime exception to report a configuration error.
> >
> > compeople AG
> > Untermainanlage 8
> > 60329 Frankfurt
> >
> > fon: +49 (69) 272218 - 0
> > fax: +49 (69) 272218 - 22
> > email: [EMAIL PROTECTED]
> > home: www.compeople.de
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> compeople AG
> Untermainanlage 8
> 60329 Frankfurt
> 
> fon: +49 (69) 272218 - 0
> fax: +49 (69) 272218 - 22
> email: [EMAIL PROTECTED]
> home: www.compeople.de
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind
http://howardlewisship.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to