Generative testing involves executing a function hundreds or thousands of times with randomly-generated conforming arguments and then checking that expected properties hold on the result of that function. An exception is not a result, so, no you cannot do generative testing on functions that throw exceptions -- unless you very specifically define the arguments to only be values that the function can return a result for (which is what Nikola's answer hints at).