Class ParserException

    • Method Summary

      Modifier and Type Method Description
      @NonNull java.lang.Class<?> getArgumentParserClass()
      Get the argument parser
      @NonNull CommandContext<?> getContext()
      Get the command context
      java.lang.String getMessage()  
      • Methods inherited from class java.lang.Throwable

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

      • ParserException

        protected ParserException​(java.lang.Class<?> argumentParser,
                                  @NonNull CommandContext<?> context,
                                  @NonNull Caption errorCaption,
                                  @NonNull CaptionVariable... captionVariables)
    • Method Detail

      • getMessage

        public final java.lang.String getMessage()
        Overrides:
        getMessage in class java.lang.Throwable
      • getArgumentParserClass

        public final @NonNull java.lang.Class<?> getArgumentParserClass()
        Get the argument parser
        Returns:
        Argument parser
      • getContext

        public final @NonNull CommandContext<?> getContext()
        Get the command context
        Returns:
        Command context