What is the use of catch in escript?



What is the use of catch in escript?..

Answer / guest

The catch clause is used to handle the exception. To raise
an exception, use the throw statement. When you want to trap
potential errors generated by a block of code, place that
code in a try statement, and follow the try statement with a
catch statement. The catch statement is used to process the
exceptions that may occur in the manner you specify in the
exception_handling_block. The following example demonstrates
the general form of the try statement with the catch clause.
In this example, the script continues executing after the
error message is displayed:
try {
do_something;
}
catch (e) {
TheApplication().RaiseErrorText(Clib.rsprintf("Something bad
happened: %s",e.toString()));
}

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More Siebel Interview Questions

why did use the siebel crm?

4 Answers   IBM,


Why do we need to create employees at the database in siebel?

0 Answers  


How to configure the products in siebel?

0 Answers  


How we will create drilldown in form applet?

0 Answers  


Explain is it required to install gateway server before installing a siebel server?

0 Answers  


Hi All, anyone can explain me about precision n scale properties. while extending one column in a table we will cum under these properties. Thanks n advance.

1 Answers   IBM,


What are the test cases which you will be writing provided the scenario is in an Accounts tab, there are three different status like ‘Open’, ‘Active’ and ‘Pending’. Every night a nightly job will be running and the Accounts which are in ‘Open’ status will be changed to ‘Active’ after the job runs. The user does not have the privilege to change the Status from ‘Open’ to ‘Active’, only privilege he has is to change to ‘Pending’ status.

3 Answers   IBM,


Why is it not recommended to modify existing base tables?

1 Answers   Siebel Systems,


Hi All, anyone explain me about lonlist property while creating Picklist we wil cum to this property. Thanks in Advance.

1 Answers   IBM,


In the Siebel screens, what are the different fields available and what kind of validation will you be doing for that.

0 Answers   Cap Gemini,


What is the use of item identifier.

0 Answers  


What is the procedure to configure the static caching using the content group?

0 Answers  


Categories