Package edu.wpi.first.util.struct.parser
Class ParseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
edu.wpi.first.util.struct.parser.ParseException
- All Implemented Interfaces:
Serializable
Exception for parsing errors.
- See Also:
-
Constructor Summary
ConstructorDescriptionParseException
(int pos, String s) Constructs a ParseException.ParseException
(int pos, String message, Throwable cause) Constructs a ParseException.ParseException
(int pos, Throwable cause) Constructs a ParseException. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns position in parsed string.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ParseException
Constructs a ParseException.- Parameters:
pos
- The parser position.s
- Reason for parse failure.
-
ParseException
Constructs a ParseException.- Parameters:
pos
- The parser position.message
- Reason for parse failure.cause
- Exception that caused the parser failure.
-
ParseException
Constructs a ParseException.- Parameters:
pos
- The parser position.cause
- Exception that caused the parser failure.
-
-
Method Details
-
getPosition
Returns position in parsed string.- Returns:
- Position in parsed string.
-
getMessage
- Overrides:
getMessage
in classThrowable
-