ErrorSpan constructor

ErrorSpan(
  1. Object? error
)

Renders an error or exception object.

The error is converted to string via Object.toString. Returns EmptySpan if error is null.

Typically used together with StackTraceSpan to show both the error message and its stack trace.

Implementation

ErrorSpan(this.error);