Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
epoxy
GitHub Repository: epoxy/proj11
Path: blob/master/SLICK_HOME/src/org/newdawn/slick/opengl/CompositeIOException.java
1461 views
1
package org.newdawn.slick.opengl;
2
3
import java.io.IOException;
4
import java.util.ArrayList;
5
6
/**
7
* A collection of IOException that failed image data loading
8
*
9
* @author kevin
10
*/
11
public class CompositeIOException extends IOException {
12
/** The list of exceptions causing this one */
13
private ArrayList exceptions = new ArrayList();
14
15
/**
16
* Create a new composite IO Exception
17
*/
18
public CompositeIOException() {
19
super();
20
}
21
22
/**
23
* Add an exception that caused this exceptino
24
*
25
* @param e The exception
26
*/
27
public void addException(Exception e) {
28
exceptions.add(e);
29
}
30
31
/**
32
* @see java.lang.Throwable#getMessage()
33
*/
34
public String getMessage() {
35
String msg = "Composite Exception: \n";
36
for (int i=0;i<exceptions.size();i++) {
37
msg += "\t"+((IOException) exceptions.get(i)).getMessage()+"\n";
38
}
39
40
return msg;
41
}
42
}
43
44