2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018

01/10/2003: How to set the root cause when throwing an exception

How to set the root cause when throwing an exception
NamingException ne = new NamingException("foo bar blah blah");
ne.setRootCause(e);
throw ne;


subscribe via RSS