01: /*
02: * Created on Jan 9, 2006
03: *
04: * TODO To change the template for this generated file go to
05: * Window - Preferences - Java - Code Style - Code Templates
06: */
07: package org.enhydra.snapper.parsers.fileparsers;
08:
09: /**
10: * @author Milin Radivoj
11: *
12: * TODO To change the template for this generated type comment go to
13: * Window - Preferences - Java - Code Style - Code Templates
14: */
15: public class FileParserException extends Exception {
16:
17: private Exception origin;
18: private String filename;
19:
20: public FileParserException(String filename, Exception e) {
21: super (e);
22: this .filename = filename;
23: origin = e;
24: }
25:
26: public FileParserException(String msg) {
27: super (msg);
28: }
29:
30: public FileParserException(Exception e) {
31: super (e);
32: origin = e;
33: }
34:
35: public Exception getEmbedded() {
36: return origin;
37: }
38:
39: public void setFileName(String filename) {
40: this .filename = filename;
41: }
42:
43: public String getFileName() {
44: return filename;
45: }
46: }
|