summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/kitfox/svg/SVGElementException.java
blob: 61a4540db5f2120f535499416adc763d41fa8847 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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;
    }
}