我想在我正在创建的模块上添加“try catch”语句。我想指定以数字格式捕获的异常。这是示例代码,
Try
interest = me.txtInterest.text
principal = me.txtPrincipal.text
totalPayment = interest + principal
Catch ex As Exception 'What is the proper exception for Number Format?
MsgBox("Number Format Error")
End Try
我想指定数字格式的例外。我怎么能那样做?