Class ArgumentParseException

    • Constructor Summary

      Constructors 
      Constructor Description
      ArgumentParseException​(@NonNull java.lang.Throwable throwable, @NonNull java.lang.Object commandSender, @NonNull java.util.List<@NonNull CommandArgument<?,​?>> currentChain)
      Create a new command parse exception
    • Method Summary

      Modifier and Type Method Description
      @NonNull java.lang.Throwable getCause()
      Get the cause of the exception
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, 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

      • ArgumentParseException

        public ArgumentParseException​(@NonNull java.lang.Throwable throwable,
                                      @NonNull java.lang.Object commandSender,
                                      @NonNull java.util.List<@NonNull CommandArgument<?,​?>> currentChain)
        Create a new command parse exception
        Parameters:
        throwable - Exception that caused the parsing error
        commandSender - Command sender
        currentChain - Chain leading up to the exception
    • Method Detail

      • getCause

        public @NonNull java.lang.Throwable getCause()
        Get the cause of the exception
        Overrides:
        getCause in class java.lang.Throwable
        Returns:
        Cause