source: osm/applications/editors/josm/plugins/importvec/src/com/kitfox/svg/SVGElementException.java@ 23707

Last change on this file since 23707 was 23707, checked in by upliner, 14 years ago

Add importvec plugin stub

File size: 1.4 KB
Line 
1/*
2 * SVGException.java
3 *
4 * Created on May 12, 2005, 11:32 PM
5 *
6 * To change this template, choose Tools | Options and locate the template under
7 * the Source Creation and Management node. Right-click the template and choose
8 * Open. You can then make changes to the template in the Source Editor.
9 */
10
11package com.kitfox.svg;
12
13/**
14 *
15 * @author kitfox
16 */
17public class SVGElementException extends SVGException
18{
19 public static final long serialVersionUID = 0;
20
21 private final SVGElement element;
22
23 /**
24 * Creates a new instance of <code>SVGException</code> without detail message.
25 */
26 public SVGElementException(SVGElement element)
27 {
28 this(element, null, null);
29 }
30
31
32 /**
33 * Constructs an instance of <code>SVGException</code> with the specified detail message.
34 * @param msg the detail message.
35 */
36 public SVGElementException(SVGElement element, String msg)
37 {
38 this(element, msg, null);
39 }
40
41 public SVGElementException(SVGElement element, String msg, Throwable cause)
42 {
43 super(msg, cause);
44 this.element = element;
45 }
46
47 public SVGElementException(SVGElement element, Throwable cause)
48 {
49 this(element, null, cause);
50 }
51
52 public SVGElement getElement()
53 {
54 return element;
55 }
56}
Note: See TracBrowser for help on using the repository browser.