org.springframework.boot.cli.command

Class CommandException

    • Constructor Detail

      • CommandException

        public CommandException(String message,
                                CommandException.Option... options)
        Create a new CommandException with the specified options.
        Parameters:
        message - the exception message to display to the user
        options - the exception options
      • CommandException

        public CommandException(String message,
                                Throwable cause,
                                CommandException.Option... options)
        Create a new CommandException with the specified options.
        Parameters:
        message - the exception message to display to the user
        cause - the underlying cause
        options - the exception options