001    /*
002     * SVGException.java
003     *
004     * Created on May 12, 2005, 11:32 PM
005     *
006     * To change this template, choose Tools | Options and locate the template under
007     * the Source Creation and Management node. Right-click the template and choose
008     * Open. You can then make changes to the template in the Source Editor.
009     */
010    
011    package com.kitfox.svg;
012    
013    /**
014     *
015     * @author kitfox
016     */
017    public class SVGElementException extends SVGException
018    {
019        public static final long serialVersionUID = 0;
020        
021        private final SVGElement element;
022        
023        /**
024         * Creates a new instance of <code>SVGException</code> without detail message.
025         */
026        public SVGElementException(SVGElement element)
027        {
028            this(element, null, null);
029        }
030        
031        
032        /**
033         * Constructs an instance of <code>SVGException</code> with the specified detail message.
034         * @param msg the detail message.
035         */
036        public SVGElementException(SVGElement element, String msg)
037        {
038            this(element, msg, null);
039        }
040        
041        public SVGElementException(SVGElement element, String msg, Throwable cause)
042        {
043            super(msg, cause);
044            this.element = element;
045        }
046        
047        public SVGElementException(SVGElement element, Throwable cause)
048        {
049            this(element, null, cause);
050        }
051    
052        public SVGElement getElement()
053        {
054            return element;
055        }
056    }