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

Suppose if we have dynamic picklist as bounded can we add field?

0 Answers  


What is siebel admin mode view? How to create this?

0 Answers  


How is netscaler static caching maintained?

0 Answers  


How do you display the number of records in a picklist(combo box/drop down) not the records in the pickapplet, in just 3 rows and not 5 rows(which is the default)?

0 Answers  


what is the difference between siebel 7.5 and 7.8? If we upgrade the application to 7.8 from 7.5 what are the areas we need to give importance from qa(testing) point of view?

0 Answers  






How is siebel 7.x architecture different from siebel 6.x? How is siebel 7.x architecture different from siebel 6.x?

0 Answers  


Explain why do we use symbolic strings in siebel 77?

0 Answers  


Explain what is siebel gateway?

0 Answers  


best practices in configuration

1 Answers   TCS,


What are the differences between siebel 7.8 and 8.0?

0 Answers  


Explain how to configure a mvg?

0 Answers  


What is force active property?

0 Answers  


Categories