Siebel VB Language Reference > Siebel VB Language Overview > Trapping Errors Returned by Siebel Visual Basic (VB) >

Option 2: Trap Errors Using an Error Handler


The On Error statement used here specifies a label to jump to in case of errors. The code segment is part of the main procedure and uses the Err statement to determine which error code is returned. To make sure your code does not accidentally fall through to the error handler, precede it with an Exit statement.

Siebel VB Language Reference Copyright © 2006, Oracle. All rights reserved.