@@ -216,7 +216,7 @@ public static StorageException toStorageException(Throwable exception) {
216216 }
217217
218218 /**
219- * This exception is thrown from {@link JsonStreamWriter #append()} when the client side Json to
219+ * This exception is thrown from {@link SchemaAwareStreamWriter #append()} when the client side Json to
220220 * Proto serializtion fails. It can also be thrown by the server in case rows contains invalid
221221 * data. The exception contains a Map of indexes of faulty rows and the corresponding error
222222 * message.
@@ -348,15 +348,15 @@ protected InflightBytesLimitExceededException(String writerId, long currentLimit
348348 }
349349 }
350350 /**
351- * Input Json data has unknown field to the schema of the JsonStreamWriter . User can either turn
352- * on IgnoreUnknownFields option on the JsonStreamWriter , or if they don't want the error to be
353- * ignored, they should recreate the JsonStreamWriter with the updated table schema.
351+ * Input data object has unknown field to the schema of the CustomStreamWriter . User can either turn
352+ * on IgnoreUnknownFields option on the CustomStreamWriter , or if they don't want the error to be
353+ * ignored, they should recreate the CustomStreamWriter with the updated table schema.
354354 */
355- public static final class JsonDataHasUnknownFieldException extends IllegalArgumentException {
355+ public static final class DataHasUnknownFieldException extends IllegalArgumentException {
356356 private final String jsonFieldName ;
357357
358- protected JsonDataHasUnknownFieldException (String jsonFieldName ) {
359- super (String .format ("JSONObject has fields unknown to BigQuery: %s." , jsonFieldName ));
358+ public DataHasUnknownFieldException (String jsonFieldName ) {
359+ super (String .format ("Source object has fields unknown to BigQuery: %s." , jsonFieldName ));
360360 this .jsonFieldName = jsonFieldName ;
361361 }
362362
0 commit comments