cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leo Sutic" <>
Subject RE: [VOTE RESULTS] Make ProcessingException extend CascadingRuntimeException
Date Tue, 20 Apr 2004 10:33:40 GMT
I change my non-binding vote to -1.


When you have a block of code that uses other modules, you often end up

    try {
    } catch (Exception e) {
        // Whatever the cause, it didn't work.
        throw new MyException (e);

Since RuntimeException isa Exception, this will catch and wrap
RuntimeExceptions as well.

This sort-of defeats what we're trying to achieve with
which is to make it bypass all wrapping and so on and go directly to the
bottom of the stack.

Therefore, ProcessingException should really be ProcessingError - since
you're not expected to recover from it. Or extend Throwable directly.


> From: Ugo Cei [] 

View raw message