Skip to content
View as Markdown
View as Markdown

@salesforce/b2c-tooling-sdk / cli / ERROR_CODE

Variable: ERROR_CODE

const ERROR_CODE: object

Defined in: packages/b2c-tooling-sdk/src/cli/base-command.ts:54

Stable error-code values passed to oclif's this.error(msg, {code}) so that classifyError can categorize the resulting telemetry without parsing error messages.

  • VALIDATION — user/config input error (missing flag, bad value). Expected, not a reliability defect.
  • GUARDRAIL — blocked by the user's own safety configuration. Working as intended, not a failure of the tool.

Type Declaration

GUARDRAIL

readonly GUARDRAIL: "GUARDRAIL" = 'GUARDRAIL'

VALIDATION

readonly VALIDATION: "VALIDATION" = 'VALIDATION'

Released under the Apache-2.0 License.