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

public class ArgumentSyntaxException extends RuntimeException
Class representing an argument syntax exception.

Thrown when an argument cannot be parsed correctly.

See Also:
  • Constructor Details

    • ArgumentSyntaxException

      public ArgumentSyntaxException(@NotNull @NotNull String message, @NotNull @NotNull String input)
      Constructs an ArgumentSyntaxException with the specified message and input string.
      Parameters:
      message - the detail message, saved for later retrieval by the getMessage() method
      input - the input string that caused the exception
  • Method Details

    • getInput

      @NotNull public @NotNull String getInput()
      Returns the input string that caused the exception.
      Returns:
      the input string that caused the exception