Class ParseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.libxmq.ParseException
- All Implemented Interfaces:
Serializable
The parse exception contains necessary information
to understand the parse failure.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionParseException(ParseErrorCode ec, String text, int line, int column, String source) Construct a parse exception. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ParseException
Construct a parse exception.- Parameters:
ec- The error code.text- The line on which the parse failed.line- The line number.column- The column.source- Information about where the xmq originated from.
-
-
Method Details
-
errorCode
-
text
-
line
public int line()Get the line number.- Returns:
- line number
-
column
public int column()Get the column.- Returns:
- column
-
source
Get the source, ie file name, "mbuffer", "stdin" etc.- Returns:
- The source information.
-