Skip to content

API ReferenceErrorsClass

ContactSupportError

Error indicating that an internal SDK error has occurred, and the user should contact the support team with the provided code. This kind of error should only be created/thrown in situations that we believe should never happen.

Extends

Constructors

Constructor

new ContactSupportError(code, cause?): ContactSupportError;

Parameters

ParameterType
codestring
cause?unknown

Returns

ContactSupportError

Overrides

BaseError.constructor

Properties

code

readonly code: string;

Methods

walk()

walk<T>(errorType): T | undefined;

Checks if the provided ErrorType is in the error hierarchy for the current error.

Type Parameters

Type ParameterDescription
T extends ErrorThe type of the error being searched for.

Parameters

ParameterTypeDescription
errorType(…args) => TThe error type to find.

Returns

T | undefined

The error, if it is found in the hierarchy, otherwise undefined.

Inherited from

BaseError.walk