Warning codes

Overview of Silk Meter warning codes

Silk Meter policies can have warning codes associated with them. The warning code 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; that is, 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.

Handling warning codes

The programmer of the Silk Meter-controlled application can decide how to handle warning codes. The application can, for example, 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.

Warning codes and descriptions

The following table lists the Silk Meter warning codes, along with a brief description:

Warning Code

Brief Description

SGME_NO_WARNING

The license doesn't 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.

Related Topics