UNPKG

@vocdoni/sdk

Version:

⚒️An SDK for building applications on top of Vocdoni API

28 lines (24 loc) 791 B
export class ErrInitializingWeb3 extends Error { static readonly code: number = 5019; constructor(message?: string) { super(message ? message : 'error initialising web3 client'); } } export class ErrCantGetLastBlockNumber extends Error { static readonly code: number = 5021; constructor(message?: string) { super(message ? message : 'error getting last block number from web3 endpoint'); } } export class ErrEncodeAPIInfo extends Error { static readonly code: number = 5023; constructor(message?: string) { super(message ? message : 'error encoding API info'); } } export class ErrMalformedPagination extends Error { static readonly code: number = 4022; constructor(message?: string) { super(message ? message : 'malformed pagination params'); } }