static public esConcurrencyException CheckForConcurrencyException(OracleException ex) { esConcurrencyException ce = null; if (ex.ErrorCode == 20101) { ce = new esConcurrencyException(ex.Message, ex); ce.Source = ex.Source; } return(ce); }
static public esConcurrencyException CheckForConcurrencyException(MySqlException ex) { esConcurrencyException ce = null; if (ex != null) { if (ex.Number == 532) { ce = new esConcurrencyException(ex.Message, ex); ce.Source = ex.Source; } } return(ce); }
static public esConcurrencyException CheckForConcurrencyException(EfzException ex) { esConcurrencyException ce = null; // TODO: //if (ex != null) //{ // if (ex.Number == 532) // { // ce = new esConcurrencyException(ex.Message, ex); // ce.Source = ex.Source; // } //} return(ce); }
static public esConcurrencyException CheckForConcurrencyException(SAException ex) { esConcurrencyException ce = null; if (ex.Errors != null) { foreach (SAError err in ex.Errors) { if (err.NativeError == 532) { ce = new esConcurrencyException(err.Message, ex); break; } } } return(ce); }
static public esConcurrencyException CheckForConcurrencyException(SqlException ex) { esConcurrencyException ce = null; if (ex.Errors != null) { foreach (SqlError err in ex.Errors) { if (err.Number == 532) { ce = new esConcurrencyException(err.Message, ex); ce.Source = err.Source; break; } } } return(ce); }
static public esConcurrencyException CheckForConcurrencyException(VistaDBException ex) { esConcurrencyException ce = null; return(ce); }