Convert ConstraintViolationExceptoin to subtype SQLException.