Cache exceptions while generation