auto-gen code Exception argument reference mistake