|
Hilbert II - Version 0.03.01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception org.qedeq.kernel.xml.parser.SyntaxException
Exception that occurs during XML parsing. It specifies an syntactical error. It can also mark a lack of inner consistence of something.
Field Summary | |
static int |
MISSING_ATTRIBUTE_CODE
Error code for unexpected character data. |
static String |
MISSING_ATTRIBUTE_TEXT_1
Missing attribute text. |
static String |
MISSING_ATTRIBUTE_TEXT_2
Missing attribute, part two. |
static int |
SAX_PARSER_EXCEPTION
Error code for Exceptions thrown by the SAXParser. |
static int |
UNEXPECTED_DATA_CODE
Error code for unexpected character data. |
static String |
UNEXPECTED_DATA_TEXT
Unexpected tag message text, part one. |
static int |
UNEXPECTED_TAG_CODE
Error code for unexpected tag. |
static String |
UNEXPECTED_TAG_TEXT
Unexpected tag message text. |
Constructor Summary | |
SyntaxException(int code,
String message)
Constructor. |
|
SyntaxException(SAXParseException e,
URL url)
Constructor. |
Method Summary | |
static SyntaxException |
createMissingAttributeException(String name,
String attribute)
Create exception for missing attribute within a tag. |
static SyntaxException |
createUnexpectedTagException(String name)
Create exception for unexpected tag. |
static SyntaxException |
createUnexpectedTextDataException(String name,
String value)
Create exception for unexpected text data within a tag. |
int |
getErrorCode()
Get error code. |
SourcePosition |
getErrorPosition()
Get error position. |
void |
setErrorPosition(SourcePosition position)
Set error position. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int SAX_PARSER_EXCEPTION
public static final int UNEXPECTED_TAG_CODE
public static final String UNEXPECTED_TAG_TEXT
public static final int UNEXPECTED_DATA_CODE
public static final String UNEXPECTED_DATA_TEXT
public static final int MISSING_ATTRIBUTE_CODE
public static final String MISSING_ATTRIBUTE_TEXT_1
public static final String MISSING_ATTRIBUTE_TEXT_2
Constructor Detail |
public SyntaxException(SAXParseException e, URL url)
e
- Exception thrown by the SAXParser
.url
- Parsed file.public SyntaxException(int code, String message)
code
- Error code.message
- Error message.Method Detail |
public final int getErrorCode()
public final SourcePosition getErrorPosition()
public final void setErrorPosition(SourcePosition position)
position
- Error position.public static final SyntaxException createUnexpectedTagException(String name)
name
- Tag name.
public static final SyntaxException createUnexpectedTextDataException(String name, String value)
name
- Tag name.value
- Data found.
public static final SyntaxException createMissingAttributeException(String name, String attribute)
name
- Tag name.attribute
- Attribute name.
|
Hilbert II - Version 0.03.01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
©left GNU General Public Licence All Rights Reserved. |