Improve exception message for failed setId in Statement