throwable property

dynamic get throwable

An object that was thrown.

It's runtimeType and toString() are logged. If it's an Error, with a stackTrace, the stackTrace is logged. If this behavior is undesirable, consider using a custom formatted message instead.

Implementation

dynamic get throwable => (_throwable is ThrowableMechanism)
    ? (_throwable as ThrowableMechanism).throwable
    : _throwable;