Skip to content

Commit d652969

Browse files
committed
Fix Exception type to be more specifically
1 parent d927df6 commit d652969

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/org/embulk/output/dynamodb/DynamodbOutputPlugin.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import org.embulk.config.TaskSource;
2121
import org.embulk.spi.Column;
2222
import org.embulk.spi.ColumnVisitor;
23+
import org.embulk.spi.DataException;
2324
import org.embulk.spi.Exec;
2425
import org.embulk.spi.OutputPlugin;
2526
import org.embulk.spi.Page;
@@ -335,7 +336,7 @@ private Object getRawFromValue(Value value)
335336
} else if (value.isNilValue()) {
336337
return null;
337338
}
338-
throw new RuntimeException("UnSupported Type");
339+
throw new DataException("Record has invalid json column value");
339340
}
340341
});
341342

0 commit comments

Comments
 (0)