Skip to main content

License

public class License extends Object

package com.onekosmos.blockid.sdk.BIDAPIs.APIManager.ErrorManager


Utility class to manage License errors.

Constructor

public License(int code, String message)

  • Creates an object of License class.
Parameters
codeint: The error code. Refer error codes table below.
messageString: The message associated with error code. Refer error codes table below.

Method Summary

TypeNameDescription
intgetCode()Returns error code.
StringgetMessage()Returns error message.

Method Detail

getCode

public int getCode()

  • Returns error code.

getMessage

public String getMessage()

  • Returns error message.

Error Codes

The below table lists license error codes and messages.

KeyCodeMessage
BAD_REQUEST200005Bad request
EXPIRED200002The license key is expired
INVALID200006The license key is invalid
MODULE_NOT_ENABLED200004The license key is not enabled for this module
MODULES_EMPTY200003The license key is not enabled with required modules
UNAUTHORIZED200001The license key is not authorized