Michel,
I don't have a specific answer, maybe someone else has come across this.
But in general, if you put your data retrieve/update commands inside a try-catch block, you can trap the exception and see what the generated error message is.
Hope that helps...
Kevin