Path: blob/master/SLICK_HOME/src/org/newdawn/slick/svg/ParsingException.java
1463 views
package org.newdawn.slick.svg;12import org.newdawn.slick.SlickException;3import org.w3c.dom.Element;45/**6* Exception indicating a failure to parse XML, giving element information7*8* @author kevin9*/10public class ParsingException extends SlickException {1112/**13* Create a new exception14*15* @param nodeID The ID of the node that failed validation16* @param message The description of the failure17* @param cause The exception causing this one18*/19public ParsingException(String nodeID, String message, Throwable cause) {20super("("+nodeID+") "+message, cause);21}2223/**24* Create a new exception25*26* @param element The element that failed validation27* @param message The description of the failure28* @param cause The exception causing this one29*/30public ParsingException(Element element, String message, Throwable cause) {31super("("+element.getAttribute("id")+") "+message, cause);32}3334/**35* Create a new exception36*37* @param nodeID The ID of the node that failed validation38* @param message The description of the failure39*/40public ParsingException(String nodeID, String message) {41super("("+nodeID+") "+message);42}4344/**45* Create a new exception46*47* @param element The element that failed validation48* @param message The description of the failure49*/50public ParsingException(Element element, String message) {51super("("+element.getAttribute("id")+") "+message);52}53}545556