Error系列全局可用

This commit is contained in:
2026-04-26 04:09:35 +08:00
parent 162b92a415
commit ebceb0a260
10 changed files with 84 additions and 86 deletions
+1 -1
View File
@@ -323,7 +323,7 @@ string appId
### 7.7 错误处理
使用基类的 `ErrorWhen` 系列方法,**不手动 throw、不返回错误码**:
使用基类的 `ErrorWhen` 系列方法,**不手动 throw、不返回错误码**:(全局扩展,任何地方都可以这样抛出异常)
```csharp
ErrorWhenNull(entity); // null 则报错(默认 404