| Bookshelf Home | Contents | Index | PDF | ![]() |
|
Siebel eScript Language Reference > Statements Reference > Guidelines for Using Siebel eScript > Throw StatementThe Throw statement causes Siebel eScript to stop running code if an error occurs. FormatTable 25 describes arguments for the Throw statement. UsageIn the following example, the Throw statement stops the script after Siebel CRM displays an error message: try Using the Throw Statement with Nested Try Catch BlocksIf any error occurs while processing a statement in a try block, then Siebel eScript creates an exception. An outer catch block can handle this exception. For example, assume a section of code includes three levels of try catch blocks:
The following code illustrates this example: TheApplication().Trace(e.toString()); TheApplication().RaiseErrorText("Error Occurred "+e.toString()); Related TopicsFor more information, see Try Statement. |
![]() |
![]() |
| Siebel eScript Language Reference | Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |