/* * Copyright (C) 2016-present ScyllaDB */ /* * SPDX-License-Identifier: AGPL-3.0-or-later */ #pragma once #include #include "utils/fmt-compat.hh" namespace thrift { template Ex make_exception(const char* fmt, Args&&... args) { Ex ex; ex.why = fmt::format(fmt::runtime(fmt), std::forward(args)...); return ex; } }