M
mikeb
I'm trying to find the correct (?) way to capture errors and display them
appropriately.
Try
'some code here
Catch ex as exception
msgbox (ex.message)
Finally
'some final code here
End Try
With SQLce errors I add 'Catch ex as SQLCeException"
Thats an easy one to figure out, but how do I best catch exceptions to other
types of possible errors. How does the developer best plan for these?
Were bumping up against some errors, that no matter what *exception type we
use in the catch, the code still catches in the final Catch ex as Exception
line (we put it last in the Catch list too).
Can you help me out?
Thanks,
Mike
appropriately.
Try
'some code here
Catch ex as exception
msgbox (ex.message)
Finally
'some final code here
End Try
With SQLce errors I add 'Catch ex as SQLCeException"
Thats an easy one to figure out, but how do I best catch exceptions to other
types of possible errors. How does the developer best plan for these?
Were bumping up against some errors, that no matter what *exception type we
use in the catch, the code still catches in the final Catch ex as Exception
line (we put it last in the Catch list too).
Can you help me out?
Thanks,
Mike