diff options
Diffstat (limited to 'sources/shiboken6/tests/libsample/exceptiontest.h')
-rw-r--r-- | sources/shiboken6/tests/libsample/exceptiontest.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/sources/shiboken6/tests/libsample/exceptiontest.h b/sources/shiboken6/tests/libsample/exceptiontest.h new file mode 100644 index 000000000..b5812a090 --- /dev/null +++ b/sources/shiboken6/tests/libsample/exceptiontest.h @@ -0,0 +1,25 @@ +// Copyright (C) 2018 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 + +#ifndef EXCEPTIONTEST_H +#define EXCEPTIONTEST_H + +#include "libsamplemacros.h" + +#include <exception> + +class LIBSAMPLE_API ExceptionTest +{ + public: + ExceptionTest(); + + int intThrowStdException(bool doThrow); + void voidThrowStdException(bool doThrow); + + int intThrowInt(bool doThrow); + void voidThrowInt(bool doThrow); + + static ExceptionTest *create(bool doThrow); +}; + +#endif // EXCEPTIONTEST_H |