How to pass error msg from SQL to Java?
1 posts in topic
Flat View  Flat View

Posted By:   Jeff_Tang
Posted On:   Monday, August 12, 2002 06:18 PM

I need to pass a customized error message from SQL, or PL/SQL to my java problem. How should I do it?


Re: How to pass error msg from SQL to Java?

Posted By:   rama_raju  
Posted On:   Monday, August 19, 2002 01:38 AM

Solution 1 :

create a table with message field for corrsponsgin error & insert that message into table and return the same.

Solution 2 :

keep all the messages ready in that table & for perticular exception select appropriate record and return it

Solution 3:

return some string ( OUT PARAMETER) and in u'r java programm use it to define error
like f- falied trasaction
s- successfull transaction
About | Sitemap | Contact