We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need to migrate all errors from 1.x branch to web3-common package as error constructors.
1.x
web3-common
https://github.com/ChainSafe/web3.js/blob/40974e9fe9a8f9075fcbb4c002430c6480d83031/packages/web3-core-helpers/src/errors.js#L27-L136
These error constructors should follow following pattern and extend base class Web3Error.
Web3Error
class Web3Error extends Error { public name: string; public code = 'ERR_WEB3'; public constructor(...args: unknown[]) { super(...unknown); this.name = this.constructor.name; Error.captureStackTrace(this, Web3Error); } } class InvalidConnectionError extends Web3Error { constructor(host, event) { super(`CONNECTION ERROR: Couldn\'t connect to node ${host}.'); this.code = 'ERR_CONNECTION_ERR'; } }
The text was updated successfully, but these errors were encountered:
nazarhussain
Successfully merging a pull request may close this issue.
Description
Need to migrate all errors from
1.x
branch toweb3-common
package as error constructors.https://github.com/ChainSafe/web3.js/blob/40974e9fe9a8f9075fcbb4c002430c6480d83031/packages/web3-core-helpers/src/errors.js#L27-L136
These error constructors should follow following pattern and extend base class
Web3Error
.Acceptance Criteria
Additional Information
The text was updated successfully, but these errors were encountered: