Class UsageException

  • All Implemented Interfaces:

    public class UsageException
    extends java.lang.RuntimeException
    A Usage Error has occurred. Print the usage and exit with the appropriate exit code.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructor Description
      UsageException​(int exitCode, java.lang.String message)  
      UsageException​(int exitCode, java.lang.String format, java.lang.Object... objs)  
      UsageException​(int exitCode, java.lang.Throwable cause)  
      UsageException​(java.lang.String format, java.lang.Object... objs)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getExitCode()  
      • Methods inherited from class java.lang.Throwable

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

      • UsageException

        public UsageException​(int exitCode,
                              java.lang.String message)
      • UsageException

        public UsageException​(int exitCode,
                              java.lang.String format,
                              java.lang.Object... objs)
      • UsageException

        public UsageException​(java.lang.String format,
                              java.lang.Object... objs)
      • UsageException

        public UsageException​(int exitCode,
                              java.lang.Throwable cause)
    • Method Detail

      • getExitCode

        public int getExitCode()