fun exceptionToMessage(t: Throwable): String
Returns a string error message from the given throwable. If the type is an AssertionError then the message is taken from the exceptions own message, otherwise the exception is converted to a string.