How about we follow the builder pattern here. So genWrappedException -> build and SQLException has an inner Builder class, so SQLExceptionInfo.getNewInfoObject -> new SQLException.Builder(). So the line would look like this:
new SQLExceptionInfo.Builder(e).setCode(SQLExceptionCodeEnum.ILLEGAL_DATA).build();