Class LiveAttributeException

All Implemented Interfaces:
Serializable

public class LiveAttributeException extends RuntimeException
Thrown when a live attribute cannot parse an attribute's value.
See Also:
  • Field Details

    • ERR_ATTRIBUTE_MISSING

      public static final short ERR_ATTRIBUTE_MISSING
      See Also:
    • ERR_ATTRIBUTE_MALFORMED

      public static final short ERR_ATTRIBUTE_MALFORMED
      See Also:
    • ERR_ATTRIBUTE_NEGATIVE

      public static final short ERR_ATTRIBUTE_NEGATIVE
      See Also:
    • e

      protected Element e
      The element on which the error occured.
    • 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.
    • value

      protected String value
      The malformed attribute value.
  • Constructor Details

    • 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 Details

    • getElement

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

      public String getAttributeName()
      Returns the attribute name.
    • getCode

      public short getCode()
      Returns the error code.
    • getValue

      public String getValue()
      Returns the problematic attribute value.