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
public class ParseException extends Exception
Exception for parsing errors.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description ParseException(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 Type Method Description int
getPosition()
Returns position in parsed string.String
toString()
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
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.
-
toString
-