Class UsageException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.geode.modules.session.installer.args.UsageException
All Implemented Interfaces:
Serializable

public class UsageException extends Exception
Invalid usage exception.
See Also:
  • Constructor Details

    • UsageException

      public UsageException(String message)
      Creates a new UsageException.
      Parameters:
      message - description of exceptional condition
  • Method Details

    • setUsage

      public void setUsage(String usageText)
      Attaches a usage message to the exception for later consumption.
      Parameters:
      usageText - text to display to user to guide them to correct usage. This is generated and set by the ArgsProcessor.
    • getUsage

      public String getUsage()
      Returns the usage message previously set.
      Returns:
      message or null if not set.