1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

JavaClassWrapper: Allow handling exceptions (rather than just crashing)

This commit is contained in:
David Snopek
2025-02-14 09:27:40 -06:00
parent b607110ad2
commit 5d69d20059
4 changed files with 29 additions and 0 deletions

View File

@@ -70,6 +70,7 @@ void JavaObject::_bind_methods() {
void JavaClassWrapper::_bind_methods() {
ClassDB::bind_method(D_METHOD("wrap", "name"), &JavaClassWrapper::wrap);
ClassDB::bind_method(D_METHOD("get_exception"), &JavaClassWrapper::get_exception);
}
#if !defined(ANDROID_ENABLED)