Skip to content

Commit

Permalink
wrapping unrecognized XStream ConversionException in CucumberException
Browse files Browse the repository at this point in the history
  • Loading branch information
mgurov committed Jan 12, 2014
1 parent 7e4a3fe commit 6fe3fb5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ private <T> List<T> toListOfComplexType(DataTable dataTable, Class<T> itemType)
if (e.getCause() instanceof NullPointerException) {
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")));
} else {
throw e;
throw new CucumberException(e);
}
}
}
Expand Down

0 comments on commit 6fe3fb5

Please sign in to comment.