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
Omit<SolanaError<TErrorCode>,"cause">
Type Parameters
| Type Parameter | Default type |
|---|---|
TErrorCode extends SolanaErrorCodeWithDeprecatedCause | SolanaErrorCodeWithDeprecatedCause |
Properties
| Property | Modifier | Type | Description | Inherited from |
|---|---|---|---|---|
cause? | readonly | unknown | Deprecated The cause property is deprecated for this error code. Use the error's context property instead to access relevant error information. | - |
context | readonly | SolanaErrorCodedContext[TErrorCode] | Contains context that can assist in understanding or recovering from a SolanaError. | Omit.context |
message | public | string | - | SolanaError.message |
name | public | string | - | SolanaError.name |
stack? | public | string | - | SolanaError.stack |