System.Data.Common.ADP.IsCatchableExceptionType C# (CSharp) Méthode

IsCatchableExceptionType() static private méthode

static private IsCatchableExceptionType ( Exception e ) : bool
e System.Exception
Résultat bool
        static internal bool IsCatchableExceptionType(Exception e)
        {
            return !((e is NullReferenceException) ||
                     (e is SecurityException));
        }

Usage Example

Exemple #1
0
        private bool FillNextResult(DataReaderContainer dataReader)
        {
            bool flag = true;

            if (this._hasFillErrorHandler)
            {
                try
                {
                    flag = dataReader.NextResult();
                }
                catch (Exception exception)
                {
                    if (!ADP.IsCatchableExceptionType(exception))
                    {
                        throw;
                    }
                    ADP.TraceExceptionForCapture(exception);
                    this.OnFillErrorHandler(exception, null, null);
                }
                return(flag);
            }
            return(dataReader.NextResult());
        }
All Usage Examples Of System.Data.Common.ADP::IsCatchableExceptionType
ADP