velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukas Zimmermann <lukas.zimmerm...@liebhart.com>
Subject Re: ReferenceException
Date Wed, 28 Nov 2001 19:28:43 GMT
"Geir Magnusson Jr." wrote:
> 
> On 11/28/01 1:55 PM, "Lukas Zimmermann" <lukas.zimmermann@liebhart.com>
> wrote:
> 
> > OK, convinced!
> 
> Of what?  Event handlers can't throw rightnow....  The best you can do is
> tell the app that something is wrong and not to use the resulting render...

I see...
Well that would do for now, I think.

For me the tail side of your coin would be sufficient but I agree that
head would be more flexible.

> 
> > Thanks again.
> > Lukas
> >
> > "Geir Magnusson Jr." wrote:
> >>
> >> On 11/28/01 1:34 PM, "Lukas Zimmermann" <lukas.zimmermann@liebhart.com>
> >> wrote:
> >>
> >>> Yes, thanks a lot, this helps,
> >>> I didn't come onto this by myself, much more better than looking into
> >>> log messages ;-).
> >>>
> >>> But for my kind of application it would be more natural if a
> >>> ReferenceException would be thrown. Would you regard it as an option
> >>> to introduce a property by which this may be controlled?
> >>
> >> I am sitting here tossing a coin :)
> >>
> >> Heads : we let any event handler throw an exception - that way you can
> >> customize how this works.  For example, you may want to throw an exception
> >> when only certain references 'fail', rather than all.
> >>
> >> Tails : there is a switch that has it thrown all the time.
> >>
> >> I think Heads covers Tails with added functionality...
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:velocity-user-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail:
> > <mailto:velocity-user-help@jakarta.apache.org>
> >
> 
> --
> Geir Magnusson Jr.                                     geirm@optonline.net
> System and Software Consulting
> "He who throws mud only loses ground." - Fat Albert

--
To unsubscribe, e-mail:   <mailto:velocity-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:velocity-user-help@jakarta.apache.org>


Mime
View raw message