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

when you have pre default value and post default value for a field, which one will be stored in the database?

0 Answers  


How to send an email using siebel application? Other than using f9 functional key?

0 Answers  


How do you assign responsibilities to employees in Siebel?

0 Answers  


What is detail applet and association applet?

0 Answers  


In Siebel 7.7, how do you add button icon in an applet?

0 Answers  






How will you improve your performance in views?

1 Answers  


Explain the differences between siebel 7.8 and 8.0?

0 Answers  


Differences btn 1:M and M:M Link?

1 Answers  


How to run genbscript.exe?

0 Answers  


Explain what is foreign key table in siebel?

0 Answers  


Explain what is siebel gateway?

0 Answers  


What is an EBC (External Business Component) and how is it different from VBC.

2 Answers  


Categories