directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Trustin Lee <trus...@gmail.com>
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 05:46:26 GMT
2005/12/28, akarasulu@apache.org <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 );

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

Mime
View raw message