@salesforce/b2c-tooling-sdk / clients / isFallbackTrigger
Function: isFallbackTrigger()
isFallbackTrigger(
error):boolean
Defined in: packages/b2c-tooling-sdk/src/clients/scapi-backend-utils.ts:170
Detects whether an error should trigger an OCAPI fallback. Currently:
- isInvalidScopeError: AM rejected the requested scope.
- ScapiCapabilityUnsupportedError: the SCAPI surface lacks the capability the caller asked for.
- ScapiRequestError: SCAPI definitively rejected the request with a safe client-error status.
Parameters
error
unknown
Returns
boolean