jimfog Posted September 14, 2013 Share Posted September 14, 2013 I have set up a transaction in which 2 queries are performed, 2 inserts having to do with user registration. Suppose that one of the queries fails, how am I going to learn which one failed? Can exceptions help me here? Link to comment Share on other sites More sharing options...
birbal Posted September 15, 2013 Share Posted September 15, 2013 If you want to log it in background, you can use exception with specific message and/or the sql dump in the message. and use a specific exception handler for that particular type of exception that handler will dump the data to flat file or inform the admin or any thing you want to do with it. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now