MCPcopy Create free account
hub / github.com/catboost/catboost / CheckNotNullHandle

Function CheckNotNullHandle

catboost/node-package/src/api_helpers.h:33–35  ·  view source on GitHub ↗

Checks that the model handle is not null. As this should never be the case throws internal error.

Source from the content-addressed store, hash-verified

31
32// Checks that the model handle is not null. As this should never be the case throws internal error.
33inline bool CheckNotNullHandle(Napi::Env env, ModelCalcerHandle* handle) {
34 return CheckNotNull(env, handle, "Internal error - null handle encountered");
35}
36
37// Checks that the return status of C API is true, returns error in JS exception otherwise.
38inline bool CheckStatus(Napi::Env& env, bool status) {

Callers 3

TModelMethod · 0.85
LoadFullFromFileMethod · 0.85
SetPredictionTypeMethod · 0.85

Calls 1

CheckNotNullFunction · 0.70

Tested by

no test coverage detected