1

我正在使用 RavenDB UniqueConstraints 捆绑包,当违反唯一约束时我得到异常客户端,但它的 InvalidOperationException 异常消息解释了原因 Raven.Database.Exceptions.OperationVetoedException: PUT 被 Raven.Bundles.UniqueConstraints.UniqueConstraintsPutTrigger 否决,因为:确保唯一约束

无论如何要在 try catch 块中捕获 OperationVetoedException

4

0 回答 0