mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-07 07:41:50 -05:00
JavaClassWrapper: Allow handling exceptions (rather than just crashing)
This commit is contained in:
@@ -271,6 +271,8 @@ class JavaClassWrapper : public Object {
|
||||
bool _get_type_sig(JNIEnv *env, jobject obj, uint32_t &sig, String &strsig);
|
||||
#endif
|
||||
|
||||
Ref<JavaObject> exception;
|
||||
|
||||
Ref<JavaClass> _wrap(const String &p_class, bool p_allow_private_methods_access);
|
||||
|
||||
static JavaClassWrapper *singleton;
|
||||
@@ -285,6 +287,10 @@ public:
|
||||
return _wrap(p_class, false);
|
||||
}
|
||||
|
||||
Ref<JavaObject> get_exception() {
|
||||
return exception;
|
||||
}
|
||||
|
||||
#ifdef ANDROID_ENABLED
|
||||
Ref<JavaClass> wrap_jclass(jclass p_class, bool p_allow_private_methods_access = false);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user