M
milkyway
Hello,
I have a small program whereby some data is being fetched from the
database (Oracle). As part of the program, I have "try .... catch"
statements just in case something strange happens. The statement is
something like (BTW, it is just pseudocode, not actual code):
TRY.
execute_query( l_query ).
CATCH cx_sql_exception.
ENDTRY.
As of now, if an error happens (using tomcat webserver) the whole
server shuts down. What can I do to this statement to forward it to an
error page or some other type of page? How is error handling with an
Oracle database (or data bases in general) done?
I have a small program whereby some data is being fetched from the
database (Oracle). As part of the program, I have "try .... catch"
statements just in case something strange happens. The statement is
something like (BTW, it is just pseudocode, not actual code):
TRY.
execute_query( l_query ).
CATCH cx_sql_exception.
ENDTRY.
As of now, if an error happens (using tomcat webserver) the whole
server shuts down. What can I do to this statement to forward it to an
error page or some other type of page? How is error handling with an
Oracle database (or data bases in general) done?