Package cn.nukkit.nbt.snbt
Class ParseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
cn.nukkit.nbt.snbt.ParseException
- All Implemented Interfaces:
SNBTConstants
,Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface cn.nukkit.nbt.snbt.SNBTConstants
SNBTConstants.LexicalState, SNBTConstants.TokenType
-
Constructor Summary
ConstructorDescriptionParseException
(SNBTParserImplement parser, Token token, EnumSet<SNBTConstants.TokenType> expectedTypes, List<cn.nukkit.nbt.snbt.SNBTParserImplement.NonTerminalCall> callStack) ParseException
(SNBTParserImplement parser, String message) ParseException
(SNBTParserImplement parser, EnumSet<SNBTConstants.TokenType> expectedTypes, List<cn.nukkit.nbt.snbt.SNBTParserImplement.NonTerminalCall> callStack) ParseException
(Token token) ParseException
(String message) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getSuppressed, initCause, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ParseException
public ParseException(SNBTParserImplement parser, Token token, EnumSet<SNBTConstants.TokenType> expectedTypes, List<cn.nukkit.nbt.snbt.SNBTParserImplement.NonTerminalCall> callStack) -
ParseException
-
ParseException
public ParseException(SNBTParserImplement parser, EnumSet<SNBTConstants.TokenType> expectedTypes, List<cn.nukkit.nbt.snbt.SNBTParserImplement.NonTerminalCall> callStack) -
ParseException
-
ParseException
public ParseException() -
ParseException
-
-
Method Details
-
hitEOF
public boolean hitEOF() -
getMessage
- Overrides:
getMessage
in classThrowable
-
getStackTrace
- Overrides:
getStackTrace
in classThrowable
-
printStackTrace
- Overrides:
printStackTrace
in classThrowable
-
getToken
Returns the token which causes the parse error and null otherwise.- Returns:
- the token which causes the parse error and null otherwise.
-
getParser
-