Class CommandException

    • Constructor Detail

      • CommandException

        public CommandException​(Component message)
        Constructs a new CommandException with the given message.
        Parameters:
        message - The detail message
      • CommandException

        public CommandException​(Component message,
                                Throwable cause)
        Constructs a new CommandException with the given message and the given cause.
        Parameters:
        message - The detail message
        cause - The cause
      • CommandException

        public CommandException​(Component message,
                                boolean includeUsage)
        Constructs a new CommandException with the given message.
        Parameters:
        message - The detail message
        includeUsage - Whether to include usage in the exception
      • CommandException

        public CommandException​(Component message,
                                Throwable cause,
                                boolean includeUsage)
        Constructs a new CommandException with the given message and the given cause.
        Parameters:
        message - The detail message
        cause - The cause
        includeUsage - Whether to include the usage in the exception
    • Method Detail

      • shouldIncludeUsage

        public boolean shouldIncludeUsage()
        Gets whether the exception should include usage in the presentation of the exception/stack-trace.
        Returns:
        Whether to include usage in the exception