From f3f18c595b2923f664fc405e31cbafcba4e7efd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enner=20P=C3=A9rez?= Date: Sat, 31 Dec 2016 01:52:45 -0400 Subject: [PATCH] //CA2200 --- Support.Data/Extensions.cs | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/Support.Data/Extensions.cs b/Support.Data/Extensions.cs index 3fbe8bd..568f3ea 100644 --- a/Support.Data/Extensions.cs +++ b/Support.Data/Extensions.cs @@ -2050,12 +2050,12 @@ public static int Insert(this IDbConnection conn, object obj, string extra, Type } } - catch (Exception ex) + catch (Exception) { //If Platform.SQLiteApi.ExtendedErrCode(Me.Handle) = ExtendedResult.ConstraintNotNull Then // Throw NotNullConstraintViolationException.[New](ex.Result, ex.Message, map, obj) //End If - throw ex; + throw; //CA2200 } finally { @@ -2136,14 +2136,14 @@ public static int Update(this IDbConnection conn, object obj, Type objType) { rowsAffected = conn.Execute(q, ps.ToArray()); } - catch (Exception ex) + catch (Exception) { //if (ex.Result == Result.Constraint && Platform.SQLiteApi.ExtendedErrCode(Handle) == ExtendedResult.ConstraintNotNull) //{ // throw NotNullConstraintViolationException.New(ex, map, obj); //} - throw ex; + throw; //CA2200 } return rowsAffected; @@ -2328,12 +2328,10 @@ public static IEnumerable ExecuteDeferredQuery(this IDbCommand cmd, TableM } } - catch (Exception ex) + catch (Exception) { -#if DEBUG - Console.WriteLine(ex.Message); -#endif - throw ex; + + throw; //CA2200 } finally {