Class CommandParseException

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected CommandParseException​(@NonNull java.lang.Object commandSender, @NonNull java.util.List<CommandArgument<?,​?>> currentChain)
      Construct a new command parse exception
    • Method Summary

      Modifier and Type Method Description
      @NonNull java.lang.Object getCommandSender()
      Get the command sender
      @NonNull java.util.List<@NonNull CommandArgument<?,​?>> getCurrentChain()
      Get the command chain leading up to the exception
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • CommandParseException

        protected CommandParseException​(@NonNull java.lang.Object commandSender,
                                        @NonNull java.util.List<CommandArgument<?,​?>> currentChain)
        Construct a new command parse exception
        Parameters:
        commandSender - Sender who executed the command
        currentChain - Chain leading up to the exception
    • Method Detail

      • getCommandSender

        public @NonNull java.lang.Object getCommandSender()
        Get the command sender
        Returns:
        Command sender
      • getCurrentChain

        public @NonNull java.util.List<@NonNull CommandArgument<?,​?>> getCurrentChain()
        Get the command chain leading up to the exception
        Returns:
        Unmodifiable list of command arguments