Class MissingLicenseKeyException

All Implemented Interfaces:
Serializable

public class MissingLicenseKeyException extends LicenseException
Thrown to indicate that a required license key is missing. This exception is used to inform that the operation cannot be completed due to the absence of a valid license key.
See Also:
  • Constructor Details

    • MissingLicenseKeyException

      public MissingLicenseKeyException(Product product, String message)
      Constructs a new MissingLicenseKeyException with a specified detail message and product information. This exception denotes that a license key is required but is missing for the provided product.
      Parameters:
      product - the product requiring a license key, which contains the product name and version
      message - the detail message detailing the exception context, can be null
    • MissingLicenseKeyException

      public MissingLicenseKeyException(Product product)
      Constructs a new MissingLicenseKeyException for the specified product. This exception denotes that a license key is required but is missing for the provided product.
      Parameters:
      product - the product requiring a license key, which contains the product name and version
    • MissingLicenseKeyException

      public MissingLicenseKeyException(String message)
      Constructs a new MissingLicenseKeyException with the specified detail message. This exception denotes that a license key is required but is missing.
      Parameters:
      message - the detail message providing information about the exception, which can be null
  • Method Details

    • getProductName

      public String getProductName()
      Gets the name of the product associated with this exception.
      Returns:
      the name of the product.
    • getProductVersion

      public String getProductVersion()
      Gets the version of the product associated with this exception.
      Returns:
      the product version.