/
githubmirror
/
nbs
Обзор
Документация
Войти
/
githubmirror
/
nbs
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
library/cpp/yson_pull/detail/fail.h
20 строк
540 B
qkrorlqr
Initial NBS OpenSource export
28 апр 2023, 21:54
28 апр 2023, 21:54
783a858
Код
Авторство
О чём код?
#pragma once #include "format_string.h" #include "macros.h" #include <library/cpp/yson_pull/exceptions.h> #include <library/cpp/yson_pull/position_info.h> namespace NYsonPull { namespace NDetail { template <typename... Args> [[noreturn]] ATTRIBUTE(noinline, cold) void fail( const TPositionInfo& info, Args&&... args) { auto formatted_message = format_string(std::forward<Args>(args)...); throw NException::TBadInput(formatted_message, info); } } }