コード例 #1
0
        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;
        }
コード例 #2
0
        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;
        }
コード例 #3
0
        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;
        }