Does a mechanism exist for capturing SQL exceptions and returning the error message in a http response?