QAndroidJniExceptionCleaner Class

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

This class was introduced in Qt 5.10.

Public Types

enum OutputMode { Silent, Verbose }

Public Functions

QAndroidJniExceptionCleaner(QAndroidJniExceptionCleaner::OutputMode outputMode = ...)
~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 QAndroidJniExceptionCleaner::OutputMode

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

Member Function Documentation

QAndroidJniExceptionCleaner::QAndroidJniExceptionCleaner(QAndroidJniExceptionCleaner::OutputMode outputMode = ...)

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

© 2020 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.