QAndroidJniExceptionCleaner Class

Cleans pending JNI exceptions. More...

Header: #include <QAndroidJniExceptionCleaner>
qmake: QT += androidextras
Since: Qt 5.10

This class was introduced in Qt 5.10.

Public Types

enum class OutputMode { Silent, Verbose }

Public Functions

QAndroidJniExceptionCleaner(QAndroidJniExceptionCleaner::OutputMode outputMode = OutputMode::Silent)
~QAndroidJniExceptionCleaner()
void clean()

Detailed Description

The QAndroidJniExceptionCleaner is a convenience class useful to clean the pending JNI exceptions from the current scope.

Member Type Documentation

enum class QAndroidJniExceptionCleaner::OutputMode

ConstantValueDescription
QAndroidJniExceptionCleaner::OutputMode::Silent0the exceptions are cleaned silently
QAndroidJniExceptionCleaner::OutputMode::Verbose1discribes the exceptions before cleaning them

Member Function Documentation

QAndroidJniExceptionCleaner::QAndroidJniExceptionCleaner(QAndroidJniExceptionCleaner::OutputMode outputMode = OutputMode::Silent)

Cleans any pending exceptions either silently or with descriptions, depending on the outputMode.

QAndroidJniExceptionCleaner::~QAndroidJniExceptionCleaner()

Clean any pending exceptions.

void QAndroidJniExceptionCleaner::clean()

Manually cleans any pending exceptions