载入中...
搜索中...
未找到
eve::editing::detail 命名空间参考
函数 | |
| eve::Status | makeFailureStatus (Status status, eve::DiagnosticCode code, RuleId rule, std::string message, const char *file, unsigned line, bool assertionsEnabled) |
| Build the canonical editing failure status outside payload template instantiations. | |
函数说明
◆ makeFailureStatus()
| EVENGINE_API_PLATFORM eve::Status eve::editing::detail::makeFailureStatus | ( | Status | status, |
| eve::DiagnosticCode | code, | ||
| RuleId | rule, | ||
| std::string | message, | ||
| const char * | file, | ||
| unsigned | line, | ||
| bool | assertionsEnabled | ||
| ) |
Build the canonical editing failure status outside payload template instantiations.
- 参数
-
status Failure category. code Diagnostic category. rule Owned rule identity. message Owned diagnostic message. file Static-lifetime source file name used by the assertion exception. line Source line containing the check. assertionsEnabled Assertion policy selected by the calling translation unit.
- 返回
- Owning failure status with the rule projection and editing source.
- 异常
-
zeroerr::AssertionData if assertions are enabled and status is successful.
- 注解
- Synchronous on the caller thread; only the static file name is borrowed by the exception. @cost Allocates diagnostic strings and detail storage once per failure construction.
在文件 EditingResult.cpp 第 5 行定义.
引用了 eve::detail::checkResultInvariant(), code, eve::Status::failure(), file, line, message, eve::editing::ruleDiagnostic() , 以及 status.
被这些函数引用 eve::editing::failed().