KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > alt > jiapi > file > ParseException


1 package alt.jiapi.file;
2
3 /**
4  * Class ParseException.
5  *
6  * @author Mika Riekkinen
7  */

8 public class ParseException extends RuntimeException JavaDoc {
9     private ClassFile cf;
10     private ConstantPool cp;
11
12     public ParseException(String JavaDoc message, ConstantPool cp) {
13         super(message);
14
15         this.cp = cp;
16     }
17
18     public ParseException(String JavaDoc message, ClassFile cf) {
19         super(message);
20
21         this.cf = cf;
22     }
23
24     public ClassFile getClassFile() {
25         return cf;
26     }
27
28     public ConstantPool getConstantPool() {
29         return cp;
30     }
31 }
32
Popular Tags