Path: blob/master/SLICK_HOME/src/org/newdawn/slick/opengl/CompositeIOException.java
1461 views
package org.newdawn.slick.opengl;12import java.io.IOException;3import java.util.ArrayList;45/**6* A collection of IOException that failed image data loading7*8* @author kevin9*/10public class CompositeIOException extends IOException {11/** The list of exceptions causing this one */12private ArrayList exceptions = new ArrayList();1314/**15* Create a new composite IO Exception16*/17public CompositeIOException() {18super();19}2021/**22* Add an exception that caused this exceptino23*24* @param e The exception25*/26public void addException(Exception e) {27exceptions.add(e);28}2930/**31* @see java.lang.Throwable#getMessage()32*/33public String getMessage() {34String msg = "Composite Exception: \n";35for (int i=0;i<exceptions.size();i++) {36msg += "\t"+((IOException) exceptions.get(i)).getMessage()+"\n";37}3839return msg;40}41}424344