| 1. |
How Error Handling Is Handled In Coldfusion? |
|
Answer» While debugging is mainly used to debug the CODE and to see run time values. Especially for trouble shooting. How ever, once the PROGRAMS are in production server, we can not debug, but to avoide users seeing all the error messages when a program unexpectedly failed and throwing errors, we can use error handling methods. TRY and CATCH is the best AMONG them to handle any database RELATED errors. <cftry> Write your message to the user in case of any error. </cfcatch> While debugging is mainly used to debug the code and to see run time values. Especially for trouble shooting. How ever, once the programs are in production server, we can not debug, but to avoide users seeing all the error messages when a program unexpectedly failed and throwing errors, we can use error handling methods. TRY and CATCH is the best among them to handle any database related errors. <cftry> Write your message to the user in case of any error. </cfcatch> |
|