Class ContentParser.ContentParseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
org.incendo.cloud.exception.parsing.ParserException
com.xpdustry.distributor.api.command.cloud.parser.ContentParser.ContentParseException
- All Implemented Interfaces:
Serializable
- Enclosing class:
- ContentParser<C,
T extends mindustry.ctype.MappableContent>
public static final class ContentParser.ContentParseException
extends org.incendo.cloud.exception.parsing.ParserException
An exception thrown when a content argument could not be parsed.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionContentParseException(org.incendo.cloud.context.CommandContext<?> ctx, String input, com.xpdustry.distributor.api.key.CTypeKey<?> contentType) Creates a newContentParser.ContentParseException. -
Method Summary
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
-
ContentParseException
public ContentParseException(org.incendo.cloud.context.CommandContext<?> ctx, String input, com.xpdustry.distributor.api.key.CTypeKey<?> contentType) Creates a newContentParser.ContentParseException.- Parameters:
input- the input stringctx- the command contextcontentType- the content type
-
-
Method Details
-
getInput
-
getContentType
public com.xpdustry.distributor.api.key.CTypeKey<?> getContentType()
-