Fix: avoid notice and incomplete exception when thrown.

Variable ```$configClassName```not defined in that scope, better use the ```$configClass``` and avoid notice when throwing an exception ;)