mpd/src/util/PrintException.hxx
2024-03-11 15:32:24 +01:00

17 lines
340 B
C++

// SPDX-License-Identifier: BSD-2-Clause
// Copyright CM4all GmbH
// author: Max Kellermann <mk@cm4all.com>
#pragma once
#include <exception>
/**
* 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;