summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/kitfox/svg/SVGElementException.java
diff options
context:
space:
mode:
authorkitfox2007-05-30 01:33:23 +0200
committerkitfox2007-05-30 01:33:23 +0200
commit091a1e0179cb264cc2cab6e3b11ea31045c8536d (patch)
treebd561534d16012c9d398acf32398968e14a19b85 /src/main/java/com/kitfox/svg/SVGElementException.java
parentreverting to original source tree (diff)
downloadsvg-salamander-core-091a1e0179cb264cc2cab6e3b11ea31045c8536d.tar.gz
svg-salamander-core-091a1e0179cb264cc2cab6e3b11ea31045c8536d.tar.xz
svg-salamander-core-091a1e0179cb264cc2cab6e3b11ea31045c8536d.zip
Restoring SVG Salamander to it's original code base, and updating build scripts.
git-svn-id: https://svn.java.net/svn/svgsalamander~svn/trunk/svg-core@36 7dc7fa77-23fb-e6ad-8e2e-c86bd48ed22b
Diffstat (limited to 'src/main/java/com/kitfox/svg/SVGElementException.java')
-rw-r--r--src/main/java/com/kitfox/svg/SVGElementException.java56
1 files changed, 56 insertions, 0 deletions
diff --git a/src/main/java/com/kitfox/svg/SVGElementException.java b/src/main/java/com/kitfox/svg/SVGElementException.java
new file mode 100644
index 0000000..61a4540
--- /dev/null
+++ b/src/main/java/com/kitfox/svg/SVGElementException.java
@@ -0,0 +1,56 @@
+/*
+ * SVGException.java
+ *
+ * Created on May 12, 2005, 11:32 PM
+ *
+ * To change this template, choose Tools | Options and locate the template under
+ * the Source Creation and Management node. Right-click the template and choose
+ * Open. You can then make changes to the template in the Source Editor.
+ */
+
+package com.kitfox.svg;
+
+/**
+ *
+ * @author kitfox
+ */
+public class SVGElementException extends SVGException
+{
+ public static final long serialVersionUID = 0;
+
+ private final SVGElement element;
+
+ /**
+ * Creates a new instance of <code>SVGException</code> without detail message.
+ */
+ public SVGElementException(SVGElement element)
+ {
+ this(element, null, null);
+ }
+
+
+ /**
+ * Constructs an instance of <code>SVGException</code> with the specified detail message.
+ * @param msg the detail message.
+ */
+ public SVGElementException(SVGElement element, String msg)
+ {
+ this(element, msg, null);
+ }
+
+ public SVGElementException(SVGElement element, String msg, Throwable cause)
+ {
+ super(msg, cause);
+ this.element = element;
+ }
+
+ public SVGElementException(SVGElement element, Throwable cause)
+ {
+ this(element, null, cause);
+ }
+
+ public SVGElement getElement()
+ {
+ return element;
+ }
+}