| 11 | namespace ValdiAndroid { |
| 12 | |
| 13 | void throwJavaValdiException(JNIEnv* env, const Valdi::Error& error) { |
| 14 | auto errorString = error.toString(); |
| 15 | throwJavaValdiException(env, errorString.c_str()); |
| 16 | } |
| 17 | |
| 18 | void throwJavaValdiException(JNIEnv* env, const char* message) { |
| 19 | env->ThrowNew(ValdiAndroid::JavaEnv::getCache().getValdiExceptionClass().getClass(), message); |
no test coverage detected