HumanizeSqlExceptionBehavior constructor
Implicit save/delete/undelete behavior that converts recognized database constraint violations (primary key, unique, foreign key, not null) into localized ValidationErrors using ISqlErrorExtractor and ToString instead of letting the raw provider exception surface as a server error.
public HumanizeSqlExceptionBehavior(ISqlErrorExtractor extractor)
| parameter | description |
|---|---|
| extractor | SQL error extractor. |
Exceptions
| exception | condition |
|---|---|
| ArgumentNullException | extractor is null. |
Remarks
Initializes a new instance of the class.
See Also
- interface ISqlErrorExtractor
- class HumanizeSqlExceptionBehavior