Print className in exception message