diff --git a/interop/src/cpp/jni/convertors-jni.cc b/interop/src/cpp/jni/convertors-jni.cc index 7e7addf7d81d3cccdf9cabcdf668a5f6f00b30c4..683625b09e9e7cac39905f70d84ee8f2c7ddbd45 100644 --- a/interop/src/cpp/jni/convertors-jni.cc +++ b/interop/src/cpp/jni/convertors-jni.cc @@ -14,10 +14,11 @@ */ -#define KOALA_INTEROP_MODULE +#define KOALA_INTEROP_MODULE #include "convertors-jni.h" #include "signatures.h" #include "interop-logging.h" +#include "interop-types.h" static const char* nativeModule = "org/koalaui/arkoala/InteropNativeModule"; static const char* nativeModulePrefix = "org/koalaui/arkoala/"; @@ -92,7 +93,7 @@ const std::vector>& JniExports::getM auto it = implementations.find(module); if (it == implementations.end()) { LOGE("Module %s is not registered", module.c_str()); - throw "Fatal error"; + INTEROP_FATAL("Fatal error: not registered module %s", module.c_str()); } return it->second; } diff --git a/interop/src/cpp/jni/convertors-jni.h b/interop/src/cpp/jni/convertors-jni.h index 469fb9686c200eb985bee207cb573aa3a006141b..0ff5fd07d8ee193466a87bdc98379de8af6a9e25 100644 --- a/interop/src/cpp/jni/convertors-jni.h +++ b/interop/src/cpp/jni/convertors-jni.h @@ -300,9 +300,7 @@ struct InteropTypeConverter { return result; } - static InteropType convertTo(JNIEnv* env, KLength value) { - throw "InteropTypeConverter::convertTo not implemented yet"; - } + static InteropType convertTo(JNIEnv* env, KLength value) = delete; static inline void release(JNIEnv* env, InteropType value, KLength converted) {} };