Package org.incendo.cloud.paper.parser
Class RegistryEntryParser.ParseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
org.incendo.cloud.exception.parsing.ParserException
org.incendo.cloud.paper.parser.RegistryEntryParser.ParseException
- All Implemented Interfaces:
Serializable
- Enclosing class:
RegistryEntryParser<C,E extends Keyed>
Exception when there is no registry entry for the provided key.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionParseException(@NonNull String input, @NonNull RegistryKey<Object> registryKey, @NonNull CommandContext<?> context) Creates a newRegistryEntryParser.ParseException. -
Method Summary
Modifier and TypeMethodDescriptioninput()Get the input provided by the senderReturns the registry key.Methods inherited from class org.incendo.cloud.exception.parsing.ParserException
argumentParserClass, captionVariables, context, errorCaption, formatCaption, getMessageMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ParseException
public ParseException(@NonNull String input, @NonNull RegistryKey<Object> registryKey, @NonNull CommandContext<?> context) Creates a newRegistryEntryParser.ParseException.- Parameters:
input- input stringregistryKey- registry keycontext- command context
-
-
Method Details
-
input
Get the input provided by the sender- Returns:
- Input
-
registryKey
Returns the registry key.- Returns:
- registry key
-