1// SPDX-License-Identifier: LGPL-2.0-or-later
2
3#pragma once
4
5#include "kcrash_export.h"
6
7#include <exception>
8#include <optional>
9
10namespace KCrash
11{
12struct KCRASH_NO_EXPORT ExceptionMetadata {
13 std::exception_ptr ptr;
14 const char *klass;
15 const char *what;
16};
17
18KCRASH_NO_EXPORT std::optional<ExceptionMetadata> exceptionMetadata();
19} // namespace KCrash
20

source code of kcrash/src/exception_p.h