Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to trap 1843 error. .nOT Valid month..

susfAug 10 2012 — edited Aug 11 2012
This 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
This post has been answered by JustinCave on Aug 11 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 8 2012
Added on Aug 10 2012
11 comments
2,214 views