org.apache.batik.dom.svg

Class LiveAttributeException

public class LiveAttributeException extends RuntimeException

Thrown when a live attribute cannot parse an attribute's value.
Field Summary
protected StringattributeName
The attribute name.
protected shortcode
The reason for the exception.
protected Elemente
The element on which the error occured.
static shortERR_ATTRIBUTE_MALFORMED
static shortERR_ATTRIBUTE_MISSING
static shortERR_ATTRIBUTE_NEGATIVE
protected Stringvalue
The malformed attribute value.
Constructor Summary
LiveAttributeException(Element e, String an, short code, String val)
Constructs a new LiveAttributeException with the specified parameters.
Method Summary
StringgetAttributeName()
Returns the attribute name.
shortgetCode()
Returns the error code.
ElementgetElement()
Returns the element on which the error occurred.
StringgetValue()
Returns the problematic attribute value.

Field Detail

attributeName

protected 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.

e

protected Element e
The element on which the error occured.

ERR_ATTRIBUTE_MALFORMED

public static final short ERR_ATTRIBUTE_MALFORMED

ERR_ATTRIBUTE_MISSING

public static final short ERR_ATTRIBUTE_MISSING

ERR_ATTRIBUTE_NEGATIVE

public static final short ERR_ATTRIBUTE_NEGATIVE

value

protected String value
The malformed attribute value.

Constructor Detail

LiveAttributeException

public LiveAttributeException(Element e, String an, short code, String val)
Constructs a new LiveAttributeException with the specified parameters.

Parameters: e the element on which the error occured an the attribute name code the error code val the malformed attribute value

Method Detail

getAttributeName

public String getAttributeName()
Returns the attribute name.

getCode

public short getCode()
Returns the error code.

getElement

public Element getElement()
Returns the element on which the error occurred.

getValue

public String getValue()
Returns the problematic attribute value.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.