Siebel VB Language Reference > Language Overview >

Trapping User-Defined, Non-Siebel VB Errors


These code examples show the two ways to set and trap user-defined errors. Both options use the Error statement to set the user-defined error to the value 30000. To trap the error, option 1 places error-handling code directly before the line of code that could cause an error. Option 2 contains a labeled section of code that handles any user-defined errors.

Click for full size image

Click for full size image


 Siebel VB Language Reference
 Published: 18 June 2003