Skip to content

Commit 6fe3fb5

Browse files
committed
wrapping unrecognized XStream ConversionException in CucumberException
1 parent 7e4a3fe commit 6fe3fb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/cucumber/runtime/table/TableConverter.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ private <T> List<T> toListOfComplexType(DataTable dataTable, Class<T> itemType)
113113
if (e.getCause() instanceof NullPointerException) {
114114
throw new CucumberException(String.format("Can't assign null value to one of the primitive fields in %s. Please use boxed types.", e.get("class")));
115115
} else {
116-
throw e;
116+
throw new CucumberException(e);
117117
}
118118
}
119119
}

0 commit comments

Comments
 (0)