package foam.core;

import java.util.ArrayList;

public class CompoundException extends RuntimeException {
  private ArrayList exceptions = new ArrayList<RuntimeException>();

  public void add(Throwable t) {
    exceptions.add(t);
  }

  public void maybeThrow() {
    if ( exceptions.size() != 0 ) {
      throw this;
    }
  }
}

@@ -1,8 +1,132 @@
+/**%0A * @license%0A * Copyright 2019 The FOAM Authors. All Rights Reserved.%0A * http://www.apache.org/licenses/LICENSE-2.0%0A */%0A%0A
 package 
@@ -196,16 +196,18 @@
 xception
+%0A 
  extends
@@ -223,17 +223,17 @@
 xception
- 
+%0A
 %7B%0A  priv
@@ -256,16 +256,17 @@
 ceptions
+_
  = new A
@@ -343,16 +343,17 @@
 ceptions
+_
 .add(t);
@@ -406,16 +406,17 @@
 ceptions
+_
 .size() 

Change variable name.