public class LiveAttributeException extends RuntimeException
Modifier and Type | Field and Description |
---|---|
protected 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 String |
value
The malformed attribute value.
|
Constructor and Description |
---|
LiveAttributeException(Element e,
String an,
short code,
String val)
Constructs a new
LiveAttributeException with the specified
parameters. |
Modifier and Type | Method and Description |
---|---|
String |
getAttributeName()
Returns the attribute name.
|
short |
getCode()
Returns the error code.
|
Element |
getElement()
Returns the element on which the error occurred.
|
String |
getValue()
Returns the problematic attribute value.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
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 String attributeName
protected short code
protected String value
public LiveAttributeException(Element e, String an, short code, 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 String getAttributeName()
public short getCode()
public String getValue()
Copyright © 2000–2023 Apache Software Foundation. All rights reserved.