Use YogaJniException in jni call exception handling
Summary: ##Changelog: [Internal][Yoga] Use YogaJniException in jni call exception handling Reviewed By: astreet Differential Revision: D18745615 fbshipit-source-id: 5fcf4c31f04fade94ef98a5349782ed3d43805b0
This commit is contained in:
committed by
Facebook Github Bot
parent
67915b5905
commit
073f49d0d0
@@ -7,6 +7,7 @@
|
||||
|
||||
#include "corefunctions.h"
|
||||
#include "macros.h"
|
||||
#include "YogaJniException.h"
|
||||
|
||||
namespace facebook {
|
||||
namespace yoga {
|
||||
@@ -72,7 +73,7 @@ void assertNoPendingJniException(JNIEnv* env) {
|
||||
logErrorMessageAndDie("Unable to get pending JNI exception.");
|
||||
}
|
||||
env->ExceptionClear();
|
||||
throw throwable;
|
||||
throw YogaJniException(throwable);
|
||||
}
|
||||
|
||||
} // namespace vanillajni
|
||||
|
Reference in New Issue
Block a user