GeneratedMethods can throw any exception.