throw exception when cannot find value by key