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

best practices in scripting and workflows?

1 Answers   TCS,


Explain what is the difference between eim and eai?

0 Answers  


Dynamic picklist is used to update join fields? How?

0 Answers  


Explain what is the maximum number of applets can be there in a view?

0 Answers  


Explain when do you use genbscript.exe?

0 Answers  






A view having 2 applets on same bc aplet 1 having search specification "x" and applet 2 having search specification "y" How would the data get filtered

3 Answers   IBM,


Define position type field in position applet?

1 Answers   Siebel Systems,


When querying for a data in Siebel, what kind of operators can we use?

2 Answers   Cap Gemini,


How is siebel server set up using the default tcp monitor?

0 Answers  


What is horizontal and vertical in siebel?

0 Answers  


Explain where did you use wf in your last project?

0 Answers  


How do you recognize that a particular table (base table) can be extended?

0 Answers  


Categories