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
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs aParseExceptioninstance with no error message.ParseException(String message) Constructs aParseExceptioninstance with an error message.ParseException(String message, UnexpectedCharacterException cause) Constructs aParseExceptioninstance with an error message and the cause exception. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
ParseException
public ParseException()Constructs aParseExceptioninstance with no error message. -
ParseException
Constructs aParseExceptioninstance with an error message.- Parameters:
message- the error message
-
ParseException
Constructs aParseExceptioninstance with an error message and the cause exception.- Parameters:
message- the error messagecause- an exception that caused this exception
-
-
Method Details
-
toString
-