SolanaErrorWithDeprecatedCause

A variant of SolanaError where the cause property is deprecated.

This type is returned by isSolanaError when checking for error codes in SolanaErrorCodeWithDeprecatedCause. Accessing cause on these errors will show a deprecation warning in IDEs that support JSDoc @deprecated tags.

Extends

Type Parameters

Properties

PropertyModifierTypeDescriptionInherited from
cause?readonlyunknownDeprecated The cause property is deprecated for this error code. Use the error's context property instead to access relevant error information.-
contextreadonlySolanaErrorCodedContext[TErrorCode]Contains context that can assist in understanding or recovering from a SolanaError.Omit.context
messagepublicstring-SolanaError.message
namepublicstring-SolanaError.name
stack?publicstring-SolanaError.stack

On this page