Exemple #1
0
 private FormattedException FilterCatastrophicFailure(FormattedException formattedException)
 {
     if (this.IsExceptionCatastrophicFailure(formattedException.Message) || formattedException.InnerException != null && this.IsExceptionCatastrophicFailure(formattedException.InnerException.Message))
     {
         formattedException = this.ExceptionFormatter.Format(new Exception(ExceptionStringTable.SilverlightSceneViewEUnexpectedRebuild, formattedException.SourceException));
     }
     return(formattedException);
 }
Exemple #2
0
 protected override bool SetViewContentInternal(ViewContentType contentType, ViewNode target, object content)
 {
     if (this.settingContentReentranceDepth > 1)
     {
         return(false);
     }
     if (contentType == ViewContentType.Error)
     {
         FormattedException formattedException = content as FormattedException;
         if (formattedException != null)
         {
             content = (object)this.FilterCatastrophicFailure(formattedException);
         }
     }
     try
     {
         ++this.settingContentReentranceDepth;
         return(this.SetViewContentWorker(contentType, target, content));
     }
     finally
     {
         --this.settingContentReentranceDepth;
     }
 }