updated the PR. I didn't know which kind of exception to use, I quickly googled for "deprecated exception", and most of the results were in favor of `LogicException`...