Siebel VB Language Reference > VB Language Overview >

Trapping Errors Returned by Siebel VB

This code example shows the two ways to trap errors. 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 error.

Option 1: Trap Errors Within Body of Code

Option 2: Trap Errors Using an Error Handler

Siebel VB Language Reference