Enum Class ParseErrorCode
- All Implemented Interfaces:
Serializable,Comparable<ParseErrorCode>,Constable
These are the potential parse errors that can be returned from libxmq.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAttributes not closed.Bad doctype.Body not closed.Cannot handle HTML.Cannot handle JSON.Cannot handle XML.Cannot read file.Comment closed with too many slashes.Comment not closed.Compound may not contain.Compound not closed.Entity not closed.Expected content after equals.Expected HTML.Expected HTMQ.Expected JSON.Expected XML.Expected XMQ.Invalid char.IXML expected dot.IXML expected equal or colon.IXML expected name.IXML expected rule.IXML syntax error.IXML unexpected end.JSON invalid char.JSON invalid escape.No error.Not XMQ.Out of memory.Error parsing HTML.Error parsing XML.Quote closed with too many quotes.Quote not closed.Unexpected closing brace.Unexpected tab.Value cannot start with.Warning quotes needed. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ParseErrorCodeReturns the enum constant of this class with the specified name.static ParseErrorCode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
XMQ_ERROR_NONE
No error. -
XMQ_ERROR_CANNOT_READ_FILE
Cannot read file. -
XMQ_ERROR_OOM
Out of memory. -
XMQ_ERROR_NOT_XMQ
Not XMQ. -
XMQ_ERROR_QUOTE_NOT_CLOSED
Quote not closed. -
XMQ_ERROR_ENTITY_NOT_CLOSED
Entity not closed. -
XMQ_ERROR_COMMENT_NOT_CLOSED
Comment not closed. -
XMQ_ERROR_COMMENT_CLOSED_WITH_TOO_MANY_SLASHES
Comment closed with too many slashes. -
XMQ_ERROR_BODY_NOT_CLOSED
Body not closed. -
XMQ_ERROR_ATTRIBUTES_NOT_CLOSED
Attributes not closed. -
XMQ_ERROR_COMPOUND_NOT_CLOSED
Compound not closed. -
XMQ_ERROR_COMPOUND_MAY_NOT_CONTAIN
Compound may not contain. -
XMQ_ERROR_QUOTE_CLOSED_WITH_TOO_MANY_QUOTES
Quote closed with too many quotes. -
XMQ_ERROR_UNEXPECTED_CLOSING_BRACE
Unexpected closing brace. -
XMQ_ERROR_EXPECTED_CONTENT_AFTER_EQUALS
Expected content after equals. -
XMQ_ERROR_UNEXPECTED_TAB
Unexpected tab. -
XMQ_ERROR_INVALID_CHAR
Invalid char. -
XMQ_ERROR_BAD_DOCTYPE
Bad doctype. -
XMQ_ERROR_JSON_INVALID_ESCAPE
JSON invalid escape. -
XMQ_ERROR_JSON_INVALID_CHAR
JSON invalid char. -
XMQ_ERROR_CANNOT_HANDLE_XML
Cannot handle XML. -
XMQ_ERROR_CANNOT_HANDLE_HTML
Cannot handle HTML. -
XMQ_ERROR_CANNOT_HANDLE_JSON
Cannot handle JSON. -
XMQ_ERROR_EXPECTED_XMQ
Expected XMQ. -
XMQ_ERROR_EXPECTED_HTMQ
Expected HTMQ. -
XMQ_ERROR_EXPECTED_XML
Expected XML. -
XMQ_ERROR_EXPECTED_HTML
Expected HTML. -
XMQ_ERROR_EXPECTED_JSON
Expected JSON. -
XMQ_ERROR_PARSING_XML
Error parsing XML. -
XMQ_ERROR_PARSING_HTML
Error parsing HTML. -
XMQ_ERROR_VALUE_CANNOT_START_WITH
Value cannot start with. -
XMQ_ERROR_IXML_EXPECTED_RULE
IXML expected rule. -
XMQ_ERROR_IXML_EXPECTED_NAME
IXML expected name. -
XMQ_ERROR_IXML_EXPECTED_EQUAL_OR_COLON
IXML expected equal or colon. -
XMQ_ERROR_IXML_EXPECTED_DOT
IXML expected dot. -
XMQ_ERROR_IXML_UNEXPECTED_END
IXML unexpected end. -
XMQ_ERROR_IXML_SYNTAX_ERROR
IXML syntax error. -
XMQ_WARNING_QUOTES_NEEDED
Warning quotes needed.
-
-
Field Details
-
value
public int valueReturn error code.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-