Package studio.mevera.imperat.exception
Class ArgumentParseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
studio.mevera.imperat.exception.CommandException
studio.mevera.imperat.exception.ResponseException
studio.mevera.imperat.exception.ArgumentParseException
- All Implemented Interfaces:
Serializable
Thrown when a raw argument string cannot be parsed into the expected type.
Automatically registers %input% as a placeholder so every response
message can reference the offending input without extra boilerplate at the
throw site.
Subclasses may call ResponseException.withPlaceholder(java.lang.String, java.lang.String) to add further context-specific
placeholders on top of the base %input%.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class studio.mevera.imperat.exception.ResponseException
getPlaceholderDataProvider, getResponseKey, of, withContextPlaceholders, withPlaceholder, withPlaceholder, withPlaceholderMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ArgumentParseException
-
-
Method Details
-
getInput
-