home *** CD-ROM | disk | FTP | other *** search
- package net.n3.nanoxml;
-
- import java.io.PrintStream;
- import java.io.PrintWriter;
-
- public class XMLException extends Exception {
- private String systemID;
- private int lineNr;
- private Exception encapsulatedException;
-
- public XMLException(String var1) {
- this((String)null, -1, (Exception)null, var1, false);
- }
-
- public XMLException(Exception var1) {
- this((String)null, -1, var1, var1.getMessage(), false);
- }
-
- public XMLException(String var1, int var2, Exception var3) {
- this(var1, var2, var3, "Nested Exception", true);
- }
-
- public XMLException(String var1, int var2, String var3) {
- this(var1, var2, (Exception)null, var3, true);
- }
-
- public XMLException(String var1, int var2, Exception var3, String var4, boolean var5) {
- super(var4 + (var5 ? (var1 == null ? "" : ", SystemID='" + var1 + "'") + (var2 == -1 ? "" : ", Line=" + var2) + (var3 == null ? "" : ", Exception: " + var3) : ""));
- this.systemID = var1;
- this.lineNr = var2;
- this.encapsulatedException = var3;
- }
-
- protected void finalize() throws Throwable {
- this.systemID = null;
- this.encapsulatedException = null;
- super.finalize();
- }
-
- public String getSystemID() {
- return this.systemID;
- }
-
- public int getLineNr() {
- return this.lineNr;
- }
-
- public Exception getException() {
- return this.encapsulatedException;
- }
-
- public void printStackTrace(PrintWriter var1) {
- if (this.encapsulatedException != null) {
- this.encapsulatedException.printStackTrace(var1);
- }
-
- super.printStackTrace(var1);
- }
-
- public void printStackTrace(PrintStream var1) {
- if (this.encapsulatedException != null) {
- this.encapsulatedException.printStackTrace(var1);
- }
-
- super.printStackTrace(var1);
- }
-
- public void printStackTrace() {
- if (this.encapsulatedException != null) {
- this.encapsulatedException.printStackTrace();
- }
-
- super.printStackTrace();
- }
- }
-