public class LiveAttributeException
extends java.lang.RuntimeException
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
attributeName
The attribute name.
|
protected short |
code
The reason for the exception.
|
protected Element |
e
The element on which the error occured.
|
static short |
ERR_ATTRIBUTE_MALFORMED |
static short |
ERR_ATTRIBUTE_MISSING |
static short |
ERR_ATTRIBUTE_NEGATIVE |
protected java.lang.String |
value
The malformed attribute value.
|
Constructor and Description |
---|
LiveAttributeException(Element e,
java.lang.String an,
short code,
java.lang.String val)
Constructs a new
LiveAttributeException with the specified
parameters. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttributeName()
Returns the attribute name.
|
short |
getCode()
Returns the error code.
|
Element |
getElement()
Returns the element on which the error occurred.
|
java.lang.String |
getValue()
Returns the problematic attribute value.
|
public static final short ERR_ATTRIBUTE_MISSING
public static final short ERR_ATTRIBUTE_MALFORMED
public static final short ERR_ATTRIBUTE_NEGATIVE
protected Element e
protected java.lang.String attributeName
protected short code
protected java.lang.String value
public LiveAttributeException(Element e, java.lang.String an, short code, java.lang.String val)
LiveAttributeException
with the specified
parameters.e
- the element on which the error occuredan
- the attribute namecode
- the error codeval
- the malformed attribute valuepublic Element getElement()
public java.lang.String getAttributeName()
public short getCode()
public java.lang.String getValue()
Copyright © 2022 Apache Software Foundation. All Rights Reserved.