Fixed the exception class name when pretty printing an exception