help try with Catch

how i can get any exception error using try and catch

From the OLR:

The following catches any exception in the code block:

Try
  Dim d As Date
  d.TotalSeconds = 1000
Catch e As RunTimeException
  If e IsA EndException Or e IsA ThreadEndException Then
    Raise e // Re-raise the exception for the framework
  End If
  
  MsgBox(e.Message)
End Try

ok
thanks

Of course, you could adjust the Catch section for far more exceptions. The special sauce here is to raise the exception so that the framework can do what it needs to do after you’ve handled the ones that you are interested in trapping.

In that example, only “EndException” and “ThreadEndException” would be raised while any other would simply be reported and ignored.

ok thanks