mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-14 23:56:07 +09:00
added sources for Slick
Former-commit-id: 1647fa32ef6894bd7db44f741f07c2f4dcdf9054 Former-commit-id: 0e5810dcfbe1fd59b13e7cabe9f1e93c5542da2d
This commit is contained in:
54
lib/slick-source/org/newdawn/slick/svg/ParsingException.java
Normal file
54
lib/slick-source/org/newdawn/slick/svg/ParsingException.java
Normal file
@@ -0,0 +1,54 @@
|
||||
package org.newdawn.slick.svg;
|
||||
|
||||
import org.newdawn.slick.SlickException;
|
||||
import org.w3c.dom.Element;
|
||||
|
||||
/**
|
||||
* Exception indicating a failure to parse XML, giving element information
|
||||
*
|
||||
* @author kevin
|
||||
*/
|
||||
public class ParsingException extends SlickException {
|
||||
|
||||
/**
|
||||
* Create a new exception
|
||||
*
|
||||
* @param nodeID The ID of the node that failed validation
|
||||
* @param message The description of the failure
|
||||
* @param cause The exception causing this one
|
||||
*/
|
||||
public ParsingException(String nodeID, String message, Throwable cause) {
|
||||
super("("+nodeID+") "+message, cause);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new exception
|
||||
*
|
||||
* @param element The element that failed validation
|
||||
* @param message The description of the failure
|
||||
* @param cause The exception causing this one
|
||||
*/
|
||||
public ParsingException(Element element, String message, Throwable cause) {
|
||||
super("("+element.getAttribute("id")+") "+message, cause);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new exception
|
||||
*
|
||||
* @param nodeID The ID of the node that failed validation
|
||||
* @param message The description of the failure
|
||||
*/
|
||||
public ParsingException(String nodeID, String message) {
|
||||
super("("+nodeID+") "+message);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new exception
|
||||
*
|
||||
* @param element The element that failed validation
|
||||
* @param message The description of the failure
|
||||
*/
|
||||
public ParsingException(Element element, String message) {
|
||||
super("("+element.getAttribute("id")+") "+message);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user