how to trap 1843 error. .nOT Valid month..
susfAug 10 2012 — edited Aug 11 2012This is in my cursor for loop
mstart_issue := TO_CHAR(to_date(mstart_issue,'YY-MON'),'Mon.YYYY') ;
mend_issue := to_char(to_date(mend_issue,'YY-MON'),'Mon.YYYY');
But it throws 1843 error..
i Have execptions for finding value error like
when value_error then
warn('value error'||moldmembership);
But i need something to trap the following error ie ..The moment not a valid month error occurs. .It should trap that error
Like warn('not validm onth'||membershpnumber)
What shall be the exeption to catch . .the 1843 error...
Like we got exceptions like when too many rows to catch duplicate records..
And this is how my end_issue data looks like .. . 10-jul
12-Aug date in yy-mon format..
But seems there is error..
Kindly help..
Thanks