Structured error result for a MetadataCollector.
Shapes the resume envelope { error: { code, message } } that the server-side connector reads to route the flow to its client-error branch. Use buildMetadataError to construct one.
{ error: { code, message } }
Short error code identifying the failure (e.g. 'USER_CANCELLED').
'USER_CANCELLED'
Human-readable description of the failure.
Structured error result for a MetadataCollector.
Remarks
Shapes the resume envelope
{ error: { code, message } }that the server-side connector reads to route the flow to its client-error branch. Use buildMetadataError to construct one.