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.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 aParseException
instance with no error message.ParseException(java.lang.String message)
Constructs aParseException
instance with an error message.ParseException(java.lang.String message, UnexpectedCharacterException cause)
Constructs aParseException
instance with an error message and the cause exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toString()
Returns the string representation of this exception.
-
-
-
Constructor Detail
-
ParseException
public ParseException()
Constructs aParseException
instance with no error message.
-
ParseException
public ParseException(java.lang.String message)
Constructs aParseException
instance with an error message.- Parameters:
message
- the error message
-
ParseException
public ParseException(java.lang.String message, UnexpectedCharacterException cause)
Constructs aParseException
instance with an error message and the cause exception.- Parameters:
message
- the error messagecause
- an exception that caused this exception
-
-