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 | |
---|---|
code | int: The error code. Refer error codes table below. |
message | String: The message associated with error code. Refer error codes table below. |
Method Summary
Type | Name | Description |
---|---|---|
int | getCode() | Returns error code. |
String | getMessage() | 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.
Key | Code | Message |
---|---|---|
BAD_REQUEST | 200005 | Bad request |
EXPIRED | 200002 | The license key is expired |
INVALID | 200006 | The license key is invalid |
MODULE_NOT_ENABLED | 200004 | The license key is not enabled for this module |
MODULES_EMPTY | 200003 | The license key is not enabled with required modules |
UNAUTHORIZED | 200001 | The license key is not authorized |