Use correct classname in exception message