修复一个可能的bug
This commit is contained in:
parent
6d2023adfe
commit
4eba08e692
|
@ -129,7 +129,7 @@ namespace Falcon.SugarApi.ApiDefinistions
|
|||
/// <param name="exAction">异常处理方法</param>
|
||||
protected virtual void ThrowApiException(string msg, Exception innException, Action<ApiException> exAction) {
|
||||
var ex = new ApiException(msg, innException);
|
||||
exAction(ex);
|
||||
exAction?.Invoke(ex);
|
||||
throw ex;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user