Hi
let say:
i have below code
try
{
stm1..
int numrecords= FetchDatabafromXDatavase()
stm2..
for(in=0;i<numrecords;i++)
{
stm4..
InserttoYDb(specificrecord
stm5..
}
}
catch(Exception ex)
{
// logic to write the exception to log file
}
in case if there is any exception occurs in InserttoYDb() function, i want to skip inerting specefic record to Ydatabase and continue procesing with next record.
Main Topics
Browse All Topics





by: weareitPosted on 2009-06-19 at 11:56:48ID: 24669012
Normally you would use a Try...Catch Statement. Where does the exception occur and what it is excepting on.
-saige-