Throwing explicit exception "key" field assertion