Package com.attribyte.parser
Class ParseError
java.lang.Object
com.attribyte.parser.ParseError
Reports an error during parse.
- Author:
- Matt Hamer
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionParseError(String message) Creates a parse error with unknown position.ParseError(String message, int position) Creates a parse error with a position.ParseError(String message, Throwable exception) Creates a parse error with an exception and unknown position.ParseError(String message, Throwable exception, int position) Creates a parse error with an exception and position. -
Method Summary
-
Field Details
-
message
The error message. -
exception
An optional exception; -
position
public final int positionThe character position in the parsed resource or0if unknown.
-
-
Constructor Details
-
ParseError
Creates a parse error with a position.- Parameters:
message- The error message.position- The position.
-
ParseError
Creates a parse error with unknown position.- Parameters:
message- The error message.
-
ParseError
Creates a parse error with an exception and unknown position.- Parameters:
message- The message.exception- An exception.
-
ParseError
Creates a parse error with an exception and position.- Parameters:
message- The message.exception- An exception.position- The position.
-
-
Method Details