The VB Catch syntax has a unique feature: When. It allows users to filter expressions based on something other than their type. Any arbitrary code can enter a When block to decide whether or not to handle an Exception.
<span>Catch </span>ex <span>As </span>Exception <span>When </span>Filter(ex)
Newsgroups often ask,