diff options
author | bvosburgh | 2009-10-08 19:10:41 +0000 |
---|---|---|
committer | bvosburgh | 2009-10-08 19:10:41 +0000 |
commit | a7f4cb63e531920f005097826eaeb90db8026037 (patch) | |
tree | ec2c1189a906ecfe9e64a60a05fa9edbefca87a3 /jpa/plugins/org.eclipse.jpt.utility/src/org/eclipse/jpt/utility/internal | |
parent | d2aa7cb47ed229aa124ace66add8a91e67804978 (diff) | |
download | webtools.dali-a7f4cb63e531920f005097826eaeb90db8026037.tar.gz webtools.dali-a7f4cb63e531920f005097826eaeb90db8026037.tar.xz webtools.dali-a7f4cb63e531920f005097826eaeb90db8026037.zip |
log composite exception a bit better
Diffstat (limited to 'jpa/plugins/org.eclipse.jpt.utility/src/org/eclipse/jpt/utility/internal')
-rw-r--r-- | jpa/plugins/org.eclipse.jpt.utility/src/org/eclipse/jpt/utility/internal/CompositeException.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.utility/src/org/eclipse/jpt/utility/internal/CompositeException.java b/jpa/plugins/org.eclipse.jpt.utility/src/org/eclipse/jpt/utility/internal/CompositeException.java index 69d5f89166..95161e2da9 100644 --- a/jpa/plugins/org.eclipse.jpt.utility/src/org/eclipse/jpt/utility/internal/CompositeException.java +++ b/jpa/plugins/org.eclipse.jpt.utility/src/org/eclipse/jpt/utility/internal/CompositeException.java @@ -9,14 +9,21 @@ ******************************************************************************/ package org.eclipse.jpt.utility.internal; +/** + * Provide a way for multiple exceptions to be packaged and reported. + */ public class CompositeException extends RuntimeException { private final Throwable[] exceptions; private static final long serialVersionUID = 1L; + /** + * The specified exceptions list must not be empty. + */ public CompositeException(Throwable[] exceptions) { - super(); + // grab the first exception and make it the "cause" + super(exceptions[0]); this.exceptions = exceptions; } |