In practice this is true.  But in this instance we do nothing.


Regards,
Alan

On Jan 19, 2010, at 9:16 AM, Edouard De Oliveira wrote:

The point is to react differently in case of different exceptions
but exceptions must be sorted from specific exceptions to generic ones
it can also be done by catching exception and using instanceof statements

my 2 cents :)

Cordialement, Regards,
-Edouard De Oliveira-
Blog: http://tedorgwp.free.fr
WebSite: http://tedorg.free.fr/en/main.php



----- Message d'origine ----
De : Alan D. Cabrera <l...@toolazydogs.com>
À : dev@mina.apache.org
Envoyé le : Mar 19 Janvier 2010, 16 h 12 min 41 s
Objet : Re: Not sure why...

org.apache.mina.transport.socket.apr.AprIoProcessor


Regards,
Alan

On Jan 19, 2010, at 6:44 AM, Ashish wrote:

Where did u pulled this out from ?

On Tue, Jan 19, 2010 at 8:11 PM, Alan D. Cabrera <l...@toolazydogs.com > wrote:
      try {
          doSomeStuff();
      } catch (RuntimeException e) {
          throw e;
      } catch (Error e) {
          throw e;
      } catch (Exception e) {
throw new RuntimeIoException("Failed to create a pollset.", e);
      } finally {
         cleanUp();
      }

What's the point in catching and re-throwing RuntimeException and Error?


Regards,
Alan






--thanks
ashish

Blog: http://www.ashishpaliwal.com/blog
My Photo Galleries: http://www.pbase.com/ashishpaliwal





Reply via email to