ServiceHelper.IsUniqueIndexException method
Checks if an exception seems to be an unique index exception
public static bool IsUniqueIndexException(IDbConnection connection, Exception exception,
string indexName, IRow oldRow, IRow newRow, params Field[] indexFields)
| parameter |
description |
| connection |
Connection |
| exception |
Exception |
| indexName |
Optional index name to check |
| oldRow |
Old row |
| newRow |
New row |
| indexFields |
List of index fields |
Exceptions
| exception |
condition |
| ArgumentNullException |
connection or exception is null. |
See Also