cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leo Sutic" <leo.su...@inspireinfrastructure.com>
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.

Motivation:

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

    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
ProcessingException,
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.

/LS 

> From: Ugo Cei [mailto:ugo@apache.org] 


Mime
View raw message