Auto-generate exception cause numbers