Class OptionException

  • All Implemented Interfaces:
    java.io.Serializable

    public class OptionException
    extends java.lang.Exception
    Exception thrown if there was a problem accessing an Option, or if an informational message is to be conveyed.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      OptionException​(java.lang.String msg)
      Construct a new OptionException.
      OptionException​(java.lang.String msg, boolean isInfo)
      Construct a new OptionException that may be an informational message if isValid is true.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isInfoMessage()
      Return whether the message associated with this exception is informational.
      • 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

      • OptionException

        public OptionException​(java.lang.String msg)
        Construct a new OptionException.
        Parameters:
        msg - reason for the exception
      • OptionException

        public OptionException​(java.lang.String msg,
                               boolean isInfo)
        Construct a new OptionException that may be an informational message if isValid is true.
        Parameters:
        msg - message to display
        isInfo - true if the msg is in informational message
    • Method Detail

      • isInfoMessage

        public boolean isInfoMessage()
        Return whether the message associated with this exception is informational.