Throwable.toString
string toString()Overrides Object.toString and returns the error message. Internally this forwards to the toString overload that takes a sink delegate.
void toString(scope void delegate(in char[]) sink) constThe Throwable hierarchy uses a toString overload that takes a
_sink delegate to avoid GC allocations, which cannot be
performed in certain error situations. Override this toString method to customize the error message.