If there is no stack trace or the first stack frame is missing the
className, we use just the error message.
Otherwise, if there is a
className for the error, we will use it. If there is a stack trace, we use the
className from each stack frame that has a