Ravendb 正在客户端而不是InvalidOperationException中捕获OperationVetoedException

Ravendb 正在客户端而不是InvalidOperationException中捕获OperationVetoedException,ravendb,Ravendb,我使用的是RavenDB UniqueConstraints捆绑包,当唯一约束违反时,我会在客户端获取异常,但其InvalidOperationException异常消息解释了原因 Raven.Database.Exceptions.OperationVetoedException:被Raven.Bundles.UniqueConstraints.UniqueConstraintsPutTrigger否决,因为:确保唯一约束 在try-catch块中是否还有捕获OperationVetoedEx

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


在try-catch块中是否还有捕获OperationVetoedException的方法

我从创建者那里得到了答案。。