2023-03-06 14:42:04 +01:00
|
|
|
// SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
// Copyright CM4all GmbH
|
|
|
|
// author: Max Kellermann <mk@cm4all.com>
|
2018-07-17 21:58:07 +02:00
|
|
|
|
2024-02-26 13:01:12 +01:00
|
|
|
#pragma once
|
2018-07-17 21:58:07 +02:00
|
|
|
|
2019-07-05 09:59:00 +02:00
|
|
|
#include <exception>
|
2018-07-17 21:58:07 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Print this exception (and its nested exceptions, if any) to stderr.
|
|
|
|
*/
|
|
|
|
void
|
|
|
|
PrintException(const std::exception &e) noexcept;
|
|
|
|
|
|
|
|
void
|
|
|
|
PrintException(const std::exception_ptr &ep) noexcept;
|