What is the use of catch in escript?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the link specification?

580


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

527


I have created hierarchical picklist. In parent all the values are displayed. When the values selected in the parent its displays proper value in the child picklist?

638


Explain what is eapps.cfg file?

574


Suppose in an applet we have a button when we click on that button we need to get an business service. How we are going to do it?

520






What is the "parent category" property for a screen view?

571


Give me an example of business scenario and explain implementation with workflow?

2794


How is Siebel x data model is different from Siebel 0 data model?

534


Explain what is the difference between eim and eai?

506


What is outbound in picklist?

516


Explain how to improve your performance in views?

474


Explain about Optimization techniques in eim?

594


What happens if you create an employee in siebel application and forget to create?

628


Explain pick applet?

540


What will happen after the content groups gets created?

516