Fixed exception type
Improved variable names by distinguishing more clearly between formal parameters (ie. MiningSchema element) and actual arguments (ie. application code)