MCPcopy Create free account
hub / github.com/Snapchat/Valdi / newValdiException

Function newValdiException

valdi_core/src/valdi_core/jni/JavaUtils.cpp:250–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248}
249
250static djinni::LocalRef<jobject> newValdiException(JavaEnv env, const Valdi::Error& error) {
251 auto convertedMessage = toJavaObject(env, error.getMessage());
252 return JavaEnv::getCache().getValdiExceptionClass().newObject(
253 JavaEnv::getCache().getValdiExceptionConstructorMethod(), std::move(convertedMessage));
254}
255
256JavaObject toJavaObject(JavaEnv env, const Valdi::Error& error) {
257 return JavaObject(env, newValdiException(env, error));

Callers 2

toJavaObjectFunction · 0.85
toJavaThrowableFunction · 0.85

Calls 3

toJavaObjectFunction · 0.85
getMessageMethod · 0.65
newObjectMethod · 0.45

Tested by

no test coverage detected