Restore Error Handling Quick Fix

Introduces an error-handling subroutine to ensure error state is properly handled on scope exit.

This quick-fix is available for the UnhandledOnErrorResumeNext inspection

Applicability

This quick-fix can be applied as a single operation at the following scopes:
  • Procedure
  • Module
  • Project

Examples


Rubberduck.CodeAnalysis.QuickFixes.Concrete.RestoreErrorHandlingQuickFix.cs (Prerelease-v2.5.9.6294)