NamingException ne = new NamingException("foo bar blah blah");
ne.setRootCause(e);
throw ne;
Friday, January 10, 2003
How to set the root cause when throwing an exception
Labels:
java
Subscribe to:
Post Comments (Atom)
NamingException ne = new NamingException("foo bar blah blah");
ne.setRootCause(e);
throw ne;