@salesforce/b2c-tooling-sdk / errors / classifyNetworkError
Function: classifyNetworkError()
classifyNetworkError(
err):NetworkErrorKind
Defined in: packages/b2c-tooling-sdk/src/errors/network-error.ts:122
Classifies a network error by inspecting error properties.
Checks error name, code (including nested cause.code for undici), and message content to determine the kind of network failure.
Parameters
err
unknown
The error to classify
Returns
Classified error kind