Generates a string representation of the class.
This returns an error message summarizing the error's data.