/// <devdoc> /// Rethrows the given exception. Placed in a seperate method for /// easier viewing in the stack trace. /// </devdoc> private Exception IntentionalRethrow(Exception chainException, Exception originalException) { if (chainException != null) { throw chainException; } Exception wrappedException = new ExceptionHandlingException(Resources.ExceptionNullException); return wrappedException; }
/// <devdoc> /// Rethrows the given exception. Placed in a seperate method for /// easier viewing in the stack trace. /// </devdoc> private Exception IntentionalRethrow(Exception chainException, Exception originalException) { if (chainException != null) { throw chainException; } Exception wrappedException = new ExceptionHandlingException(Resources.ExceptionNullException); return(wrappedException); }
/// <devdoc> /// Rethrows the given exception. Placed in a seperate method for /// easier viewing in the stack trace. /// </devdoc> private Exception IntentionalRethrow(Exception chainException, Exception originalException) { if (chainException != null) { throw chainException; } Exception wrappedException = new ExceptionHandlingException(Resources.ExceptionNullException); instrumentationProvider.FireExceptionHandlingErrorOccurred( ExceptionUtility.FormatExceptionHandlingExceptionMessage(policyName, wrappedException, chainException, originalException)); return(wrappedException); }
/// <devdoc> /// Rethrows the given exception. Placed in a seperate method for /// easier viewing in the stack trace. /// </devdoc> private void IntentionalRethrow(Exception chainException, Exception originalException) { if (chainException != null) { ExceptionHandledEvent.Fire(); throw chainException; } else { Exception wrappedException = new ExceptionHandlingException(SR.ExceptionNullException); ExceptionUtility.LogHandlingException(policyName, wrappedException, chainException, originalException); throw wrappedException; } }
/// <devdoc> /// Rethrows the given exception. Placed in a seperate method for /// easier viewing in the stack trace. /// </devdoc> private Exception IntentionalRethrow(Exception chainException, Exception originalException) { if (chainException != null) { throw chainException; } Exception wrappedException = new ExceptionHandlingException(Resources.ExceptionNullException); if (InstrumentationProvider != null) { InstrumentationProvider.FireExceptionHandlingErrorOccurred(ExceptionUtility.FormatExceptionHandlingExceptionMessage(policyName, wrappedException, chainException, originalException)); } return wrappedException; }
/// <summary> /// <para>Publish an instrumentation event that indicates there was an error while attempting to create a provider.</para> /// </summary> /// <param name="configurationName"><para>The name of the configuration object.</para></param> /// <param name="e"><para>The <see cref="Exception"/> to publish.</para></param> protected override void PublishFailureEvent(string configurationName, Exception e) { Exception wrappedException = new ExceptionHandlingException(SR.UnableToLoadExceptionHandlers(configurationName, this.policyName), e); ExceptionUtility.LogHandlingException(this.policyName, wrappedException, null, e); throw new ExceptionHandlingException(SR.UnableToLoadExceptionHandlers(configurationName, this.policyName)); }
/// <devdoc> /// Rethrows the given exception. Placed in a seperate method for /// easier viewing in the stack trace. /// </devdoc> private void IntentionalRethrow(Exception chainException, Exception originalException) { if (chainException != null) { ExceptionHandledEvent.Fire(); throw chainException; } else { Exception wrappedException = new ExceptionHandlingException(SR.ExceptionNullException); ExceptionUtility.LogHandlingException(policyName, wrappedException, chainException, originalException); throw wrappedException; } }