[hal] Properly error check readCANStreamSession (#6108)

This commit is contained in:
Thad House
2023-12-29 21:57:00 -08:00
committed by GitHub
parent cc631d2a69
commit 636ef58d94
3 changed files with 19 additions and 1 deletions

View File

@@ -51,6 +51,7 @@ inline bool CheckCANStatus(JNIEnv* env, int32_t status, int32_t message_id) {
return status == 0;
}
void ThrowNullPointerException(JNIEnv* env, std::string_view msg);
void ThrowCANStreamOverflowException(JNIEnv* env, jobjectArray messages,
jint length);
void ThrowIllegalArgumentException(JNIEnv* env, std::string_view msg);