Trustin Lee wrote:
2005/12/28, [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
<[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>:
- 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