示例#1
0
        private bool _recurseError(AdkException parent,
                                   SifErrorCategoryCode category)
        {
            if (parent.fChildren != null)
            {
                Exception ch = null;

                for (int i = 0; i < fChildren.Count; i++)
                {
                    ch = (Exception)fChildren[i];

                    if (ch is SifException)
                    {
                        if (((SifException)ch).HasErrorCategory(category))
                        {
                            return(true);
                        }
                    }
                    else if (ch is AdkException)
                    {
                        if (_recurseError((AdkException)ch, category))
                        {
                            return(true);
                        }
                    }
                }
            }

            return(false);
        }
示例#2
0
        private bool _recurseError( AdkException parent,
                                    SifErrorCategoryCode category )
        {
            if ( parent.fChildren != null ) {
                Exception ch = null;

                for ( int i = 0; i < fChildren.Count; i++ ) {
                    ch = (Exception) fChildren[i];

                    if ( ch is SifException ) {
                        if ( ((SifException) ch).HasErrorCategory( category ) ) {
                            return true;
                        }
                    }
                    else if ( ch is AdkException ) {
                        if ( _recurseError( (AdkException) ch, category ) ) {
                            return true;
                        }
                    }
                }
            }

            return false;
        }