On 16.04.2013 23:33, Michaël Michaud wrote: > Hi, >> >>> - //savedException = ex; >>> - throw new Error(ex.getNextException().getMessage()); >>> + String message = ex.getLocalizedMessage(); >>> + Throwable nextT = ((SQLException)ex).getNextException(); >>> + if (nextT != null) message = message + "\n" + >>> nextT.getLocalizedMessage(); >>> + throw new Error(message); >> Michael, >> >> wouldn't you have to loop over it until there is no next exception anymore? >> or, do i misunderstand the concept here? > Just tested it, but did not get more message. > I prefer to keep the simple if form until we find that returned > information is not enough. >
on further googling http://pages.cs.wisc.edu/~hasti/cs368/JavaTutorial/jdk1.2/api/java/sql/SQLException.html looks like there is only one next exception .. so, good call.. ede ------------------------------------------------------------------------------ Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data. The platform includes APIs for building apps and a phenomenal toolset for data science. Developers can use our toolset for easy data analysis & visualization. Get a free account! http://www2.precog.com/precogplatform/slashdotnewsletter _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel