com.artemis.ArtemisMultiException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of artemis-odb Show documentation
Show all versions of artemis-odb Show documentation
Fork of Artemis Entity System Framework.
package com.artemis;
import java.util.ArrayList;
import java.util.List;
@SuppressWarnings("serial")
public class ArtemisMultiException extends RuntimeException {
private final List exceptions = new ArrayList();
public ArtemisMultiException(List exceptions) {
super();
this.exceptions.addAll(exceptions);
}
public List getExceptions() {
return exceptions;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
for (Throwable t : exceptions) {
if (sb.length() > 0) sb.append("\n");
sb.append(t.getMessage());
}
return sb.toString();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy