Question

3
Replies
215
Views
Venkat Raman M (VenkatRamanM)
TCS

TCS
IN
VenkatRamanM Member since 2013 11 posts
TCS
Posted: July 15, 2016
Last activity: July 16, 2016
Posted: 15 Jul 2016 17:51 EDT
Last activity: 16 Jul 2016 9:51 EDT
Closed
Solved

How to get the DB errors from Exception and separate into sqlcode and error description

I have a requirement where, if user provides invalid data, we need to capture the SQL error produced by the invalid data and show back to user.I want to capture the SQLCODE, MSGCODE returned by the SQL error. How can i achieve and show the message back to user

 

***Updated by Moderator: Vidyaranjan. Removed user added #helpme tag. Apologies for confusion, shouldn't have been an end-user option***

Data Integration
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.