Added an error message if visualize in invoked on unsupported class.