@riahc, do the following:
switch e.getLocalizedMessage() with e.printStackTrace()
for a more complete error message, and convey the exact error message!
Great minds thing alike :P
I use those 2 methods when my web service has a issue and using that it sends a email to me with the errors.
It is solved so thank you.