Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
epoxy
GitHub Repository: epoxy/proj11
Path: blob/master/SLICK_HOME/src/org/newdawn/slick/svg/ParsingException.java
1463 views
1
package org.newdawn.slick.svg;
2
3
import org.newdawn.slick.SlickException;
4
import org.w3c.dom.Element;
5
6
/**
7
* Exception indicating a failure to parse XML, giving element information
8
*
9
* @author kevin
10
*/
11
public class ParsingException extends SlickException {
12
13
/**
14
* Create a new exception
15
*
16
* @param nodeID The ID of the node that failed validation
17
* @param message The description of the failure
18
* @param cause The exception causing this one
19
*/
20
public ParsingException(String nodeID, String message, Throwable cause) {
21
super("("+nodeID+") "+message, cause);
22
}
23
24
/**
25
* Create a new exception
26
*
27
* @param element The element that failed validation
28
* @param message The description of the failure
29
* @param cause The exception causing this one
30
*/
31
public ParsingException(Element element, String message, Throwable cause) {
32
super("("+element.getAttribute("id")+") "+message, cause);
33
}
34
35
/**
36
* Create a new exception
37
*
38
* @param nodeID The ID of the node that failed validation
39
* @param message The description of the failure
40
*/
41
public ParsingException(String nodeID, String message) {
42
super("("+nodeID+") "+message);
43
}
44
45
/**
46
* Create a new exception
47
*
48
* @param element The element that failed validation
49
* @param message The description of the failure
50
*/
51
public ParsingException(Element element, String message) {
52
super("("+element.getAttribute("id")+") "+message);
53
}
54
}
55
56