Skip to content
View as Markdown
View as Markdown

@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

NetworkErrorKind

Classified error kind

Released under the Apache-2.0 License.