GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  Testing Tools  >  QTP

 Print  |  
Question:  How do u ignore exceptions raised by a procedure or function within a package.

Ex: Package a {
Proc1;
Func1; ---- raised an exception
Proc2;
Proc3;
}

Note : Even if Func1 raises an exception proc2 and proc3 must be excecuted.





September 09, 2006 15:43:58 #1
 Mike Adams   Member Since: Visitor    Total Comments: N/A 

RE: How do u ignore exceptions raised by a procedure o...
 
You can fix the function by adding On error resume next. At the end of the function you want this line to reset the error handling.On error go to 0
     

 

Back To Question