throw exception by $key