Skip to content

SparkClientError

Defined in: errors.ts:143

Base class for errors raised by the client before any RPC is made. Callers can catch (e) { if (e instanceof SparkClientError) ... } to distinguish client-side issues from server-side failures.

  • Error
new SparkClientError(message, options?): SparkClientError;

Defined in: errors.ts:144

Parameter Type
message string
options? { cause?: unknown; }
options.cause? unknown

SparkClientError

Error.constructor