Appearance
Documentation / js-sdk-core / PrivyProviderRpcError
Class: PrivyProviderRpcError
A PrivyProviderRpcError is a classified {ProviderRpcError}. When relevant, we will attempt to replace the original messaging with our best guess of what is going on.
Extends
ProviderRpcError
Constructors
new PrivyProviderRpcError(error)
new PrivyProviderRpcError(
error
):PrivyProviderRpcError
Parameters
• error: unknown
Returns
Overrides
ProviderRpcError.constructor
Properties
cause?
cause?:
Error
Original Error object, it the error originated client-side.
Inherited from
ProviderRpcError.cause
code
readonly
code:number
Inherited from
ProviderRpcError.code
data?
readonly
data?:unknown
Inherited from
ProviderRpcError.data
details
details:
ProviderError
privyErrorCode?
privyErrorCode?:
PrivyEmbeddedWalletErrorCode
An optional error code, often included in Privy API responses.
Inherited from
ProviderRpcError.privyErrorCode
type
type:
string
='provider_error'
Inherited from
ProviderRpcError.type
Methods
toString()
toString():
string
Returns
string
Inherited from
ProviderRpcError.toString