[Yanel-dev] Generic exception handler
Michael Wechner
michael.wechner at wyona.com
Sun Feb 6 00:01:24 CET 2011
Hi Cedric
I have committed the exception handler resource, but have changed the
code quite a bit by introducing the class
src/impl/java/org/wyona/yanel/impl/resources/BasicGenericExceptionHandlerResource.java
which allows to do a cast and hence pass the exception or whatever from
within the servlet, hence you might need to watch your code when you are
doing an update.
Thanks again for the patch.
Now we need some documentation ;-) It would be great if you could
something similar to
http://www.yanel.org/en/documentation/misc/404-screen-customization.html
Thanks
Michael
On 1/31/11 12:32 AM, Michael Wechner wrote:
> Hi Cedric
>
> On 1/25/11 2:38 PM, Cedric Staub wrote:
>> Ok, but do you have any ideas an how I could pass the Exception object
>> to the resource?
>
> Well, we can either do a cast, but that means the resource needs to be
> part of the webapp
> or impl (or core) lib or outside of the build process as a third party
> dependency, because
> otherwise the build process of the webapp won't be able to access it ...
>
> ... or we introduce an interface, e.g. "Initiable" or "Configurable"
> with generic setter methods
> in order to pass in the exception object.
>
> I would suggest to do this as a third party dependency, but I am not
> sure either ;-)
>
> Any better ideas?
>
> Thanks
>
> Michael
>
>> Cheers
>> Cedric
>
More information about the Yanel-development
mailing list