mrousavy / nitro

🔥 Insanely fast native C++, Swift or Kotlin modules with a statically compiled binding layer to JSI
https://nitro.margelo.com
MIT License
642 stars 22 forks source link

feat: Explicitly catch `ClassNotFound` and `NoSuchMethod` errors #318

Closed mrousavy closed 1 week ago

mrousavy commented 1 week ago

Explicitly catches ClassNotFoundException and NoSuchMethodError errors, which happen when the class or constructor cannot be found by JNI.

These errors can occur when the user puts the class in the wrong namespace, forgets to implement a default-constructor, or when it gets stripped by ProGuard in release builds. In those cases, Nitro will throw with a nicer error message for the user.

vercel[bot] commented 1 week ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment | Name | Status | Preview | Comments | Updated (UTC) | | :--- | :----- | :------ | :------- | :------ | | **nitro-docs** | ⬜️ Skipped ([Inspect](https://vercel.com/margelo/nitro-docs/EhXf5P9YKsfvU98UmMyhQdcNhYAN)) | | | Nov 11, 2024 4:26pm |