blob: 83c6acc21fe5160a70946a6eabca9122660f95d4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#include "yql_panic.h"
namespace NYql {
namespace NDetail {
void YqlPanic(const ::NPrivate::TStaticBuf& file, int line, const char* function,
const TStringBuf& condition, const TStringBuf& message) {
auto err = TYqlPanic() << file.As<TStringBuf>() << ":" << line << " "
<< function << "(): requirement " << condition << " failed";
if (!message.empty()) {
err << ", message: " << message;
}
throw err;
}
} // namespace NDetail
} // namespace NYql
|