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
| Parameter | Type |
|---|---|
code | string |
cause? | unknown |
Returns
ContactSupportError
Overrides
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 Parameter | Description |
|---|---|
T extends Error | The type of the error being searched for. |
Parameters
| Parameter | Type | Description |
|---|---|---|
errorType | (…args) => T | The error type to find. |
Returns
T | undefined
The error, if it is found in the hierarchy, otherwise undefined.