static public tgConcurrencyException CheckForConcurrencyException(OracleException ex) { tgConcurrencyException ce = null; if (ex.Code == 20101) { ce = new tgConcurrencyException(ex.Message, ex); ce.Source = ex.Source; } return(ce); }
static public tgConcurrencyException CheckForConcurrencyException(MySqlException ex) { tgConcurrencyException ce = null; if (ex != null) { if (ex.Number == 532) { ce = new tgConcurrencyException(ex.Message, ex); ce.Source = ex.Source; } } return(ce); }
static public tgConcurrencyException CheckForConcurrencyException(SqlCeException ex) { tgConcurrencyException ce = null; if (ex.Errors != null) { foreach (SqlCeError err in ex.Errors) { if (err.NativeError == 532) { ce = new tgConcurrencyException(err.Message, ex); break; } } } return(ce); }
static public tgConcurrencyException CheckForConcurrencyException(VistaDBException ex) { tgConcurrencyException ce = null; return(ce); }
public static tgConcurrencyException CheckForConcurrencyException(SqlCeException ex) { tgConcurrencyException ce = null; if (ex.Errors != null) { foreach (SqlCeError err in ex.Errors) { if (err.NativeError == 532) { ce = new tgConcurrencyException(err.Message, ex); break; } } } return ce; }
public static tgConcurrencyException CheckForConcurrencyException(OracleException ex) { tgConcurrencyException ce = null; if (ex.Code == 20101) { ce = new tgConcurrencyException(ex.Message, ex); ce.Source = ex.Source; } return ce; }
public static tgConcurrencyException CheckForConcurrencyException(MySqlException ex) { tgConcurrencyException ce = null; if (ex != null) { if (ex.Number == 532) { ce = new tgConcurrencyException(ex.Message, ex); ce.Source = ex.Source; } } return ce; }