directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Karasulu <aok...@bellsouth.net>
Subject Re: svn commit: r359403 - in /directory/trunk/mina-core: ./ src/main/java/org/apache/mina/filter/ src/main/java/org/apache/mina/filter/codec/textline/ src/main/java/org/apache/mina/util/ src/test/java/org/apache/mina/util/
Date Wed, 28 Dec 2005 15:34:58 GMT
Trustin Lee wrote:

> 2005/12/28, akarasulu@apache.org <mailto:akarasulu@apache.org> 
> <akarasulu@apache.org <mailto:akarasulu@apache.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


Mime
View raw message