Class ArgumentSyntaxException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.teleight.teleightbots.commands.builder.exception.ArgumentSyntaxException
- All Implemented Interfaces:
Serializable
Class representing an argument syntax exception.
Thrown when an argument cannot be parsed correctly.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionArgumentSyntaxException(@NotNull String message, @NotNull String input) Constructs an ArgumentSyntaxException with the specified message and input string. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ArgumentSyntaxException
Constructs an ArgumentSyntaxException with the specified message and input string.- Parameters:
message- the detail message, saved for later retrieval by the getMessage() methodinput- the input string that caused the exception
-
-
Method Details
-
getInput
Returns the input string that caused the exception.- Returns:
- the input string that caused the exception
-