Skip to main content

errorTypes

Contains an object with different error classes commonly thrown.

Type

Object<ErrorTypes> - Object with error classes.

ErrorTypes
type ErrorTypes = {
// Base Stargazer Error.
StargazerError;

// Errors thrown by the injected WalletProvider.
StargazerWalletProviderError;

// General errors thrown by a chain provider.
StargazerChainProviderError;

// RPC related requests errors thrown by a chain provider. Complies with EIP-1193.
StargazerChainProviderRpcError;
};
Example
TypeScript
window.stargazer.errorTypes;
/* {
StargazerError: ฦ’,
StargazerWalletProviderError: ฦ’,
StargazerChainProviderError: ฦ’,
StargazerChainProviderRpcError: ฦ’
} */