On Thu, 27 Oct 2011 05:45:39 -0200, Steve Eynon <steve.ey...@alienfactory.co.uk> wrote:

What I would like to see, however, are more bespoke exceptions being
thrown so I can more easily identify them in my exception handling

Currently, my code reads something like:

if (exception.getMessage().contains("Forms require that the request
method be POST") {
    doRedirect();
}

which is brittle and nasty. I'd much rather have:

if (exception instanceof MalformedContextUrl) {
    doRedirect();
}

Sounds very good to me. JIRA please! :)

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to