please explain this piece of code

                                             p_start_dt   IN OUT DATE,
                                             p_end_dt     IN OUT DATE,
                                             p_ref_dt_txt IN     VARCHAR2 := 'CYCLE_DT')
  e_invalid_day    EXCEPTION;
  e_invalid_month  EXCEPTION;
  e_invalid_year   EXCEPTION;
  PRAGMA EXCEPTION_INIT(e_invalid_day, -1847);
  PRAGMA EXCEPTION_INIT(e_invalid_month, -1843);
  PRAGMA EXCEPTION_INIT(e_invalid_year, -1841);

This is my SQL, and I have 3 exception handlers (e_invalid_day, e_invalid_month, e_invalid_year).

What I would like to know is ;   What does the -1847, -1843 and -1841 values represent?
Are they sort of error codes?

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Yes they are error codes. You are associating the exception with a certain Oracle error code. So for example your e_invalid_day exception will be associated with ORA-01847 error ("day of month must be between 1 and last day of month"), your e_invalid_month is associated with ORA-01843 ("not a valid month") error, and so on.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Oracle Database

From novice to tech pro — start learning today.