String representation for logging and debugging.
Format: message or type + optional stack trace.
message
type
@override String toString() { final msg = message ?? '$type'; return trace != null ? '$msg\n$trace' : msg; }