Package org.apache.batik.dom.svg
Class LiveAttributeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.batik.dom.svg.LiveAttributeException
-
- All Implemented Interfaces:
java.io.Serializable
public class LiveAttributeException extends java.lang.RuntimeExceptionThrown when a live attribute cannot parse an attribute's value.- Version:
- $Id: LiveAttributeException.java 1733416 2016-03-03 07:07:13Z gadams $
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringattributeNameThe attribute name.protected shortcodeThe reason for the exception.protected org.w3c.dom.ElementeThe element on which the error occured.static shortERR_ATTRIBUTE_MALFORMEDstatic shortERR_ATTRIBUTE_MISSINGstatic shortERR_ATTRIBUTE_NEGATIVEprotected java.lang.StringvalueThe malformed attribute value.
-
Constructor Summary
Constructors Constructor Description LiveAttributeException(org.w3c.dom.Element e, java.lang.String an, short code, java.lang.String val)Constructs a newLiveAttributeExceptionwith the specified parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAttributeName()Returns the attribute name.shortgetCode()Returns the error code.org.w3c.dom.ElementgetElement()Returns the element on which the error occurred.java.lang.StringgetValue()Returns the problematic attribute value.
-
-
-
Field Detail
-
ERR_ATTRIBUTE_MISSING
public static final short ERR_ATTRIBUTE_MISSING
- See Also:
- Constant Field Values
-
ERR_ATTRIBUTE_MALFORMED
public static final short ERR_ATTRIBUTE_MALFORMED
- See Also:
- Constant Field Values
-
ERR_ATTRIBUTE_NEGATIVE
public static final short ERR_ATTRIBUTE_NEGATIVE
- See Also:
- Constant Field Values
-
e
protected org.w3c.dom.Element e
The element on which the error occured.
-
attributeName
protected java.lang.String attributeName
The attribute name.
-
code
protected short code
The reason for the exception. This must be one of the ERR_* constants defined in this class.
-
value
protected java.lang.String value
The malformed attribute value.
-
-
Constructor Detail
-
LiveAttributeException
public LiveAttributeException(org.w3c.dom.Element e, java.lang.String an, short code, java.lang.String val)Constructs a newLiveAttributeExceptionwith the specified parameters.- Parameters:
e- the element on which the error occuredan- the attribute namecode- the error codeval- the malformed attribute value
-
-
Method Detail
-
getElement
public org.w3c.dom.Element getElement()
Returns the element on which the error occurred.
-
getAttributeName
public java.lang.String getAttributeName()
Returns the attribute name.
-
getCode
public short getCode()
Returns the error code.
-
getValue
public java.lang.String getValue()
Returns the problematic attribute value.
-
-