aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/tests/libsample/exceptiontest.h
blob: b5812a090c3353998fcb73556786d0883b3eb505 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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