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

Method handleFatal

valdi_core/src/valdi_core/jni/JavaException.cpp:58–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56JavaException::~JavaException() = default;
57
58void JavaException::handleFatal(JNIEnv* env, std::optional<std::string> additionalInfo) const {
59 auto* throwable = reinterpret_cast<jthrowable>(getUnsafeObject());
60 auto errorMessage = handleFatalError(env, throwable, std::move(additionalInfo));
61 env->FatalError(errorMessage.data());
62}
63
64std::string JavaException::getMessage() const {
65 auto message = JavaCache::get().getThrowableGetMessageMethod().call(getUnsafeObject());

Callers 1

checkExceptionMethod · 0.45

Calls 2

handleFatalErrorFunction · 0.70
dataMethod · 0.45

Tested by

no test coverage detected