setError

fun setError(errorCode: String, message: String)(source)

Signals the connector's client-error branch.

The resume body will contain { "error": { "code": ..., "message": ... } }.

Parameters

errorCode

A short error code string (e.g. "USER_CANCELLED").

message

A human-readable description of the error.