Apache Directory Project - Re: svn commit: r359403 - in /directory/trunk/mina-core: ./ src/main/java/org/apache/m

This is Interesting: Free IT Magazines  
Home > Archive > Apache Directory Project > December 2005 > Re: svn commit: r359403 - in /directory/trunk/mina-core: ./ src/main/java/org/apache/m





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: svn commit: r359403 - in /directory/trunk/mina-core: ./ src/main/java/org/apache/m
Trustin Lee

2005-12-28, 2:45 am

2005/12/28, akarasulu-1oDqGaOF3Lkdnm+yROfE0A@public.gmane.org <akarasulu-1oDqGaOF3Lkdnm+yROfE0A@public.gmane.org>:
>
> - throw new IllegalArgumentException(
> - "Collection of addresses must contain only " +
> - "InetAddress instances", ase );
> + String msg = "Collection of addresses must contain only
> InetAddress instances";
> + log.error( msg, ase );
> + throw new IllegalArgumentException( msg );



What about this?

throw ( IllegalArgumentException ) new IllegalArgumentException( ...
).initCause( ase );

Trustin
--
what we call human nature is actually human habit
--
http://gleamynode.net/
PGP Key ID: 0x854B996C

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com