Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
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);
        }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
        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);
        }
Exemplo n.º 5
0
        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);
        }
Exemplo n.º 6
0
        static public esConcurrencyException CheckForConcurrencyException(VistaDBException ex)
        {
            esConcurrencyException ce = null;

            return(ce);
        }