of

Creates an Error object with the given content and optional truncate flag.

Return

The Error object representing the event result.

Parameters

content

The Throwable object representing the error content.

isTruncated

Flag indicating whether the error is truncated or not. Defaults to false.