Class LexerException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.github.zafarkhaja.semver.ParseException
com.github.zafarkhaja.semver.expr.LexerException
- All Implemented Interfaces:
Serializable
Thrown during the lexical analysis when
an illegal character is encountered.
- Since:
- 0.7.0
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLexerException
(String expr) Constructs aLexerException
instance with a string starting from an illegal character. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Field Details
-
expr
The string being analyzed starting from an illegal character.
-
-
Constructor Details
-
LexerException
LexerException(String expr) Constructs aLexerException
instance with a string starting from an illegal character.- Parameters:
expr
- the string starting from an illegal character
-
-
Method Details
-
toString
Returns the string representation of this exception.- Overrides:
toString
in classParseException
- Returns:
- the string representation of this exception
-