Skip to content

ISqlErrorExtractor interface

namespace: Serenity.Services.SqlErrors   assembly: Serenity.Net.Services

Extracts constraint violation information from a database exception. Implementations may be registered as a singleton to customize how primary key, unique, foreign key and not null violations are recognized and described for a specific database provider.

public interface ISqlErrorExtractor

Members

name description
Extract(…) Extracts constraint violation information from the given exception, or returns null if it is not a recognized constraint violation.

See Also