error output can now access the class that it needs in order to determine how it should be reported