You should catch the exception and get the message from it.