You can also do:
catch (Exception e) {
final IllegalArgumentException iae = new
IllegalArgumentException(MESSAGE);
iae.initCause(e);
throw iae;
}
If you want I can change them in CVS to reflect that. Its the
equivalent (as far as I know) of new IllegalArgumentException (message,
e) in Tiger.
-Scott
Scott Battaglia
Application Developer, Architecture & Engineering Team
Enterprise Systems and Services, Rutgers University
v: 732.445.0097 | f: 732.445.5493 | [EMAIL PROTECTED]
Luke Taylor wrote:
Ok, I've replaced it with a combination of a log message and an
IllegalArgumentException.
Thanks for reporting it. It's probably worth raising this kind of bug
report in Jira so that it doesn't get missed by accident.
cheers,
Luke.
Sprangemeijer, Ruben wrote:
Hi,
I get a compile error when compiling the HEAD version with Sun JDK
1.4.2_04. On line 63 "throw new IllegalArgumentException("Unable to
parse url: " + url, e);" it is using a constructor for
IllegalArgumentException that is only available in Java 5. Since I am
using this on Sun Application Server 7, I am not able to use Java 5.
Can someone change this line to use the jdk 1.4. compatible construct?
I am able to compile when I change it to something like:
throw new IllegalArgumentException("Unable to parse url: " + url + ",
e: " + e.getMessage());
kind regards,
Ruben Sprangemeijer
This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be
copied, disclosed to, retained or used by, any other party. If you
are not an intended recipient then please promptly delete this e-mail
and any attachment and all copies and inform the sender. Thank you.
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Home: http://acegisecurity.org
Acegisecurity-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer