Will this include the error code from the exception generated on the server side?
Also, it'd be nice to handle classes derived from ConstraintViolationException to turn it into a SQLException.