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
public class ParseException extends RuntimeException
Thrown to indicate an error during the parsing.- Since:
- 0.7.0
- Author:
- Zafar Khaja
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ParseException()Constructs 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringtoString()Returns the string representation of this exception.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Constructor Detail
-
ParseException
public ParseException()
Constructs aParseExceptioninstance with no error message.
-
ParseException
public ParseException(String message)
Constructs aParseExceptioninstance with an error message.- Parameters:
message- the error message
-
ParseException
public ParseException(String message, UnexpectedCharacterException cause)
Constructs aParseExceptioninstance with an error message and the cause exception.- Parameters:
message- the error messagecause- an exception that caused this exception
-
-