@salesforce/b2c-tooling-sdk / cli / classifyError
Function: classifyError()
classifyError(
err):ErrorCategory
Defined in: packages/b2c-tooling-sdk/src/cli/base-command.ts:79
Classify a thrown command error for telemetry so analytics can exclude expected validation/guardrail errors from reliability (defect-rate) metrics.
Resolution order:
- An explicit oclif
codeof ERROR_CODE.VALIDATION /GUARDRAIL(set at the throw site viathis.error(msg, {code})). - Safety error class names thrown from HTTP/auth middleware that do not flow through
this.error(SafetyBlockedError,SafetyConfirmationRequired). - Everything else is a genuine
runtimeerror (the reliability signal).
Parameters
err
unknown