XMLParseException.java
2.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
/*
* Decompiled with CFR 0_118.
*/
package com.day.jcr.vault.util.xml.xerces.xni.parser;
import com.day.jcr.vault.util.xml.xerces.xni.XMLLocator;
import com.day.jcr.vault.util.xml.xerces.xni.XNIException;
public class XMLParseException
extends XNIException {
protected String fPublicId;
protected String fLiteralSystemId;
protected String fExpandedSystemId;
protected String fBaseSystemId;
protected int fLineNumber = -1;
protected int fColumnNumber = -1;
public XMLParseException(XMLLocator locator, String message) {
super(message);
if (locator != null) {
this.fPublicId = locator.getPublicId();
this.fLiteralSystemId = locator.getLiteralSystemId();
this.fExpandedSystemId = locator.getExpandedSystemId();
this.fBaseSystemId = locator.getBaseSystemId();
this.fLineNumber = locator.getLineNumber();
this.fColumnNumber = locator.getColumnNumber();
}
}
public XMLParseException(XMLLocator locator, String message, Exception exception) {
super(message, exception);
this.fPublicId = locator.getPublicId();
this.fLiteralSystemId = locator.getLiteralSystemId();
this.fExpandedSystemId = locator.getExpandedSystemId();
this.fBaseSystemId = locator.getBaseSystemId();
this.fLineNumber = locator.getLineNumber();
this.fColumnNumber = locator.getColumnNumber();
}
public String getPublicId() {
return this.fPublicId;
}
public String getExpandedSystemId() {
return this.fExpandedSystemId;
}
public String getLiteralSystemId() {
return this.fLiteralSystemId;
}
public String getBaseSystemId() {
return this.fBaseSystemId;
}
public int getLineNumber() {
return this.fLineNumber;
}
public int getColumnNumber() {
return this.fColumnNumber;
}
public String toString() {
Exception exception;
StringBuffer str = new StringBuffer();
if (this.fPublicId != null) {
str.append(this.fPublicId);
}
str.append(':');
if (this.fPublicId != null) {
str.append(this.fPublicId);
}
str.append(':');
if (this.fLiteralSystemId != null) {
str.append(this.fLiteralSystemId);
}
str.append(':');
if (this.fExpandedSystemId != null) {
str.append(this.fExpandedSystemId);
}
str.append(':');
if (this.fBaseSystemId != null) {
str.append(this.fBaseSystemId);
}
str.append(':');
str.append(this.fLineNumber);
str.append(':');
str.append(this.fColumnNumber);
str.append(':');
String message = this.getMessage();
if (message == null && (exception = this.getException()) != null) {
message = exception.getMessage();
}
if (message != null) {
str.append(message);
}
return str.toString();
}
}