Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Difference between error handling and exception handling
#5
Solved: 10 Years, 9 Months, 1 Week ago
Error is an expected situation in your Script. For example, Consider a situation where you specified a divided by zero in your script logic, and the script throws an error. So you will need to handle this wherever your logic expects.
Where as exception is a runtime error that the AUT might encounter during the execution of your script.
For example you are trying to login into your application and application throws an error for database connectivity lost or something like Connection closed or license expired. These are exceptions which are unpredictable errors during runtime.

So in my opinion error handling is to put your logic to handle an expected error in your script and eception handling is to handle an unexpected error thrown by application /script at runtime.

Reply


Messages In This Thread
RE: Difference between error handling and exception handling - by Saket - 11-11-2009, 10:16 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Handling SSL certificates madhuri87 1 3,953 08-13-2015, 09:14 PM
Last Post: Ankur
  QTP hangs on handling error window dtamilarasan 1 3,628 06-04-2013, 02:45 PM
Last Post: basanth27
  Handling Object Repositories dynamically inside For Loop danny2012 3 3,830 07-13-2012, 02:00 PM
Last Post: danny2012
  Difference between "Set" and "Type" falvi 2 9,812 04-03-2012, 05:54 PM
Last Post: falvi
  Difference between RFT & QTP? SweetyChowdhury 18 19,941 08-26-2011, 07:43 AM
Last Post: nana1355

Forum Jump:


Users browsing this thread: 1 Guest(s)