add error enumeartion for license error

This commit is contained in:
Yuval Shekel
2024-08-06 16:41:54 +03:00
parent 908a6c536f
commit 0797cb2d44
2 changed files with 4 additions and 0 deletions

View File

@@ -24,6 +24,7 @@ namespace icicle {
API_NOT_IMPLEMENTED, ///< The API is not implemented for a device
INVALID_ARGUMENT, ///< Invalid argument passed
BACKEND_LOAD_FAILED, ///< Failed to load the backend
LICNESE_CHECK_ERROR, ////< Failed to check license or invalid license
UNKNOWN_ERROR, ///< An unknown error occurred
};
@@ -62,6 +63,8 @@ namespace icicle {
return "eIcicleError::INVALID_ARGUMENT";
case eIcicleError::BACKEND_LOAD_FAILED:
return "eIcicleError::BACKEND_LOAD_FAILED";
case eIcicleError::LICNESE_CHECK_ERROR:
return "eIcicleError::LICNESE_CHECK_ERROR";
case eIcicleError::UNKNOWN_ERROR:
default:
return "eIcicleError::UNKNOWN_ERROR";

View File

@@ -71,6 +71,7 @@ namespace icicle {
false, // are_points_montgomery_form
false, // are_results_on_device
false, // is_async
nullptr, // ext
};
return config;
}