Class OptionParser.OptionParseException

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String localizedMessage  
    • Constructor Summary

      Constructors 
      Constructor Description
      OptionParseException()
      Create an empty error with no description
      OptionParseException​(java.lang.String localizedMessage)
      Create an error with a localized description
      OptionParseException​(java.lang.String localizedMessage, java.lang.Throwable t)
      Create an error with a localized description and a root cause
    • Method Summary

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

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

      • OptionParseException

        public OptionParseException​(java.lang.String localizedMessage)
        Create an error with a localized description
        Parameters:
        localizedMessage - The message to display to the user.
      • OptionParseException

        public OptionParseException​(java.lang.String localizedMessage,
                                    java.lang.Throwable t)
        Create an error with a localized description and a root cause
        Parameters:
        localizedMessage - The message to display to the user.
        t - The error that caused this message to be displayed.
    • Method Detail

      • getLocalizedMessage

        public java.lang.String getLocalizedMessage()
        Overrides:
        getLocalizedMessage in class java.lang.Throwable