Warning codes

Silk Meter policies can have warning codes associated with them. The warning code that is connected to a license may contain the following messages:
  1. All licenses are in use, but because of the relaxed license count a license is still granted.
  2. This license is marked as a demo license.
  3. This license is marked as a laptop license.
  4. This license will expire in less than two weeks.

Warning messages are returned in the above stated order of preference. This means that if a license will expire in less than two weeks and is a demo license, only the warning code regarding the demo license will be returned.

The programmer of the application that is controlled by Silk Meter can decide how to handle warning codes. For example, the application can disable functionality or display additional disclaimers for a demo license or warning message if the license is set to expire soon. The method warningReason returns a string describing the warning.

The following table lists the Silk Meter warning codes, along with a brief description.
Warning Code Description
SGME_NO_WARNING The license does not have a warning code. The license may still be invalid, check the error code.
SGME_WARNING_RELAXED_EXCEEDED The number of available licenses for this product has been exceeded, but the license is in relaxed mode and allows continued operation.
SGME_WARNING_DEMO_LICENSE The policy for this product is only a demo policy.
SGME_WARNING_LAPTOP_LICENSE The policy for this product is only a laptop policy.
SGME_WARNING_EXPIRING_SOON The policy for this product will expire in less than 14 days.