Class CLIException

    • Constructor Detail

      • CLIException

        public CLIException​(String message,
                            int exitCode,
                            String subcommandName)
        Constructs a CLI Exception.
        Parameters:
        message - Exception message.
        exitCode - Exit code.
        subcommandName - Sub Command Name.
      • CLIException

        public CLIException​(String message,
                            int exitCode)
        Constructs a CLI Exception.
        Parameters:
        message - Exception message.
        exitCode - Exit code.
      • CLIException

        public CLIException​(Throwable cause,
                            int exitCode)
        Constructs a CLI Exception.
        Parameters:
        cause - Throwable object.
        exitCode - Exit code.
      • CLIException

        public CLIException​(Throwable cause,
                            int exitCode,
                            String subcommandName)
        Constructs a CLI Exception.
        Parameters:
        cause - Throwable object.
        exitCode - Exit code.
        subcommandName - Sub Command Name.
    • Method Detail

      • getExitCode

        public int getExitCode()
        Returns exit code.
        Returns:
        exit code.
      • getSubcommandName

        public String getSubcommandName()
        Returns sub command name.
        Returns:
        sub command name.
      • getL10NMessage

        public String getL10NMessage​(Locale locale)
        Returns localized message.
        Parameters:
        locale - Locale.
        Returns:
        localized message.