File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/main/java/io/confluent/kafka/connect/datagen Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -35,10 +35,10 @@ public static Schema getSchemaFromSchemaString(String schemaString) {
35
35
Schema schema ;
36
36
try {
37
37
schema = schemaParser .parse (schemaString );
38
- } catch (SchemaParseException e ) {
38
+ } catch (SchemaParseException | AvroRuntimeException e ) {
39
39
log .error ("Unable to parse the provided schema" , e );
40
40
throw new ConfigException ("Unable to parse the provided schema" );
41
- }
41
+
42
42
return schema ;
43
43
}
44
44
@@ -56,11 +56,11 @@ public static Schema getSchemaFromSchemaFileName(String schemaFileName) {
56
56
schema = schemaParser .parse (
57
57
DatagenTask .class .getClassLoader ().getResourceAsStream (schemaFileName )
58
58
);
59
- } catch (SchemaParseException | IOException i ) {
59
+ } catch (SchemaParseException | AvroRuntimeException | IOException i ) {
60
60
log .error ("Unable to parse the provided schema" , i );
61
61
throw new ConfigException ("Unable to parse the provided schema" );
62
62
}
63
- } catch (SchemaParseException | IOException e ) {
63
+ } catch (SchemaParseException | AvroRuntimeException | IOException e ) {
64
64
log .error ("Unable to parse the provided schema" , e );
65
65
throw new ConfigException ("Unable to parse the provided schema" );
66
66
}
You can’t perform that action at this time.
0 commit comments