| 56 | JavaException::~JavaException() = default; |
| 57 | |
| 58 | void 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 | |
| 64 | std::string JavaException::getMessage() const { |
| 65 | auto message = JavaCache::get().getThrowableGetMessageMethod().call(getUnsafeObject()); |
no test coverage detected