'Catch' block never reached, because '<name1>' inherits from '<name2>'

A Catch block within the code is never reached.

By default, this message is a warning. For more information on hiding warnings or treating warnings as errors, see Configuring Warnings in Visual Basic.

Error ID: BC42029

To correct this error

  • Remove the extraneous Catch block.

See Also

Tasks

How to: Test Code with a Try…Catch Block in Visual Basic

Reference

Try...Catch...Finally Statement (Visual Basic)