public AddError ( string index, string key, string error ) : void | ||
index | string | |
key | string | |
error | string | |
return | void |
var workContext = new WorkContext(); workContext.AddError("Invalid document found");In this example, we create a new WorkContext object and use the AddError method to add a message indicating that an invalid document was found during indexing. The package library for RavenDB is RavenDB.Client.
public AddError ( string index, string key, string error ) : void | ||
index | string | |
key | string | |
error | string | |
return | void |