Sign in to follow this  
Followers 0
Guest llagrevol

Catch Error Messages

2 posts in this topic

Hi,

Is there a possibility to :

When there is an error in the script , not display an error message on the workstation but log it for example with _FileWriteLog and resume the script.

Thanks

L Lagrevol

Share this post


Link to post
Share on other sites



Yep .. that's already available :D

All you need ot do is check @error whenever it might get set, and call your UDF _FileWriteLog if @error is not zero.

Of course, design-time errors won't get trapped this way. Example: syntax errors, or when you refer to a variable as an array when it isn't an array. Runtime errors are what your UDF ceverly logs by checking @error.

HTH

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0