static public esConcurrencyException CheckForConcurrencyException(OracleException ex)
        {
            esConcurrencyException ce = null;

            if (ex.Code == 20101)
            {
                ce = new esConcurrencyException(ex.Message, ex);
                ce.Source = ex.Source;
            }

            return ce;
        }
        static public esConcurrencyException CheckForConcurrencyException(SqlCeException ex)
        {
            esConcurrencyException ce = null;

            if (ex.Errors != null)
            {
                foreach (SqlCeError err in ex.Errors)
                {
                    if (err.NativeError == 532)
                    {
                        ce = new esConcurrencyException(err.Message, ex);
                        break;
                    }
                }
            }

            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;
        }