Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbvosburgh2010-03-08 17:12:33 +0000
committerbvosburgh2010-03-08 17:12:33 +0000
commit0097473c485ce6efa9dd3f1d20914336b47464f1 (patch)
tree468d137837377e32a96ca13e3de62f065fa1c2ad /jpa/plugins/org.eclipse.jpt.utility/src/org/eclipse/jpt/utility/internal
parent8a51d0807bdc37e737e5b7f8f50ea9d1aa51ef31 (diff)
downloadwebtools.dali-0097473c485ce6efa9dd3f1d20914336b47464f1.tar.gz
webtools.dali-0097473c485ce6efa9dd3f1d20914336b47464f1.tar.xz
webtools.dali-0097473c485ce6efa9dd3f1d20914336b47464f1.zip
add constructor
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.java12
1 files changed, 11 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 95161e2da9..5407997813 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
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009 Oracle. All rights reserved.
+ * Copyright (c) 2009, 2010 Oracle. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0, which accompanies this distribution
* and is available at http://www.eclipse.org/legal/epl-v10.html.
@@ -9,6 +9,8 @@
******************************************************************************/
package org.eclipse.jpt.utility.internal;
+import java.util.Collection;
+
/**
* Provide a way for multiple exceptions to be packaged and reported.
*/
@@ -18,6 +20,14 @@ public class CompositeException
private final Throwable[] exceptions;
private static final long serialVersionUID = 1L;
+
+ /**
+ * The specified exceptions list must not be empty.
+ */
+ public CompositeException(Collection<Throwable> exceptions) {
+ this(exceptions.toArray(new Throwable[exceptions.size()]));
+ }
+
/**
* The specified exceptions list must not be empty.
*/

Back to the top