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:
java.io.Serializable
- Direct Known Subclasses:
LexerException,UnexpectedCharacterException,UnexpectedTokenException
public class ParseException extends java.lang.RuntimeExceptionThrown 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(java.lang.String message)Constructs aParseExceptioninstance with an error message.ParseException(java.lang.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 java.lang.StringtoString()Returns the string representation of this exception.
-
-
-
Constructor Detail
-
ParseException
public ParseException()
Constructs aParseExceptioninstance with no error message.
-
ParseException
public ParseException(java.lang.String message)
Constructs aParseExceptioninstance with an error message.- Parameters:
message- the error message
-
ParseException
public ParseException(java.lang.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
-
-