Package com.github.zafarkhaja.semver
Class ParseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.github.zafarkhaja.semver.ParseException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
LexerException
,UnexpectedCharacterException
,UnexpectedTokenException
Thrown to indicate an error during the parsing.
- Since:
- 0.7.0
- Author:
- Zafar Khaja <zafarkhaja@gmail.com>
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs aParseException
instance with no error message.ParseException
(String message) Constructs aParseException
instance with an error message.ParseException
(String message, UnexpectedCharacterException cause) Constructs aParseException
instance with an error message and the cause exception. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
ParseException
public ParseException()Constructs aParseException
instance with no error message. -
ParseException
Constructs aParseException
instance with an error message.- Parameters:
message
- the error message
-
ParseException
Constructs aParseException
instance with an error message and the cause exception.- Parameters:
message
- the error messagecause
- an exception that caused this exception
-
-
Method Details