Errors use class.name instead of class

- https://thinkneardev.atlassian.net/browse/ES-473