mirror of
https://github.com/pseXperiments/icicle.git
synced 2026-01-09 15:37:58 -05:00
add error enumeartion for license error
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -71,6 +71,7 @@ namespace icicle {
|
||||
false, // are_points_montgomery_form
|
||||
false, // are_results_on_device
|
||||
false, // is_async
|
||||
nullptr, // ext
|
||||
};
|
||||
return config;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user