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
Alex Karasulu

2005-12-28, 5:46 pm

Trustin Lee wrote:

> 2005/12/28, akarasulu-1oDqGaOF3Lkdnm+yROfE0A@public.gmane.org <mailto:akarasulu-1oDqGaOF3Lkdnm+yROfE0A@public.gmane.org>
> <akarasulu-1oDqGaOF3Lkdnm+yROfE0A@public.gmane.org <mailto: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 );



Much better ... did not know it existed and was available in 1.3. Will
add it.

Thanks,
Alex


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com