* Eelco Hillenius:

> There's a couple of things I'm not crazy about.
>
> First of  all, I'd  much prefer just  having factory  method for
> exceptions,  so  that clients  can  choose  themselves what  are
> interesting  exceptions and  how to  deal with  that. That's way
> more flexible,  as new cases  wouldn't need new methods,  and it
> would keep the interface minimal.

+1

> Another thing is  that this would mean more ways  to do the same
> thing.  We  already have  RequestCycle#onRuntimeException, which
> IMO is  a decent facility. I'd  actually prefer  it to be  a bit
> more flexible to  just return a request target  or something, so
> that you  can send an error  code or redirect to  a bookmarkable
> page (for the sake of ending up with a better url).

+1

Let's not  start having  one method for  every type  of exception.
Let the power to the users.
-- 
     Jean-Baptiste Quenot
aka  John Banana   Qwerty
http://caraldi.com/jbq/

Reply via email to