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

Explain how to import lovs?

537


when i click on first time ststic picklist valus should be 4 values and if i click next time i want to see 6 picklist with diff values for that same field.How will u configure

2184


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

541


What will happen after the content groups gets created?

516


What is caching in siebel?

563






What is the difference between an organization and division in Siebel?

547


Explain what is detailed category and what is its use in configuration?

520


Explain how to create an extension table with an intersection table?

523


Explain how to import list of values?

538


What are caching and purging in siebel?

609


Explain what is eapps.cfg file?

580


What is inbound in picklist?

508


How to find entity relation in siebel tools?

565


Explain how to configure a mvg?

545


What is the difference in the architecture of Siebel x and Siebel x?

534