Class InvalidSyntaxException

All Implemented Interfaces:
Serializable

public final class InvalidSyntaxException extends CommandException
Thrown when a command's syntax does not match any valid usage pathway.

Carries %invalid_usage% and %closest_usage% placeholders which are used by the throwable resolver in ImperatConfigImpl.

See Also:
  • Constructor Details

    • InvalidSyntaxException

      public InvalidSyntaxException(String invalidUsage, @Nullable @Nullable CommandPathway<S> closestUsage)
      Parameters:
      invalidUsage - what the user actually typed (e.g. "/give sword stone")
      closestUsage - the closest valid usage hint, or null if unavailable
  • Method Details