Include class names in error messages, even if it is complex to get them.