Package com.github.zafarkhaja.semver
Class UnexpectedCharacterException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.github.zafarkhaja.semver.ParseException
-
- com.github.zafarkhaja.semver.UnexpectedCharacterException
-
- All Implemented Interfaces:
Serializable
public class UnexpectedCharacterException extends ParseException
Thrown when attempting to consume a character of unexpected types. This exception is a wrapper exception extendingParseException
.- Since:
- 0.8.0
- Author:
- Zafar Khaja
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toString()
Returns the string representation of this exception containing the information about the unexpected element and, if available, about the expected types.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Method Detail
-
toString
public String toString()
Returns the string representation of this exception containing the information about the unexpected element and, if available, about the expected types.- Overrides:
toString
in classParseException
- Returns:
- the string representation of this exception
-
-