Skip to content
New issue

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

refactor: common Error struct used in avsRegistry chainWriter and chainSubscriber #489

Open
wants to merge 11 commits into
base: dev
Choose a base branch
from

Conversation

maximopalopoli
Copy link
Contributor

@maximopalopoli maximopalopoli commented Jan 30, 2025

Do not merge

What Changed?

This PR can be seen as a continuation of the PRs #477, #482 and #486, since expands the usage of the common custom error to the avsRegistry chainWriter and chainSubscriber.

The idea is to use a common custom error in all SDK exposed functions, and make the error descriptive for the SDK user. For this reason, the Error custom struct is the same as the showed in #477.

The order of the error codes, the names of the errors themselves, or even the Error struct attributes may change in future PRs.

Reviewer Checklist

  • Code is well-documented
  • Code adheres to Go naming conventions
  • Code deprecates any old functionality before removing it

@maximopalopoli maximopalopoli marked this pull request as ready for review January 30, 2025 18:06
@maximopalopoli maximopalopoli changed the title refactor: common Error struct used in avsRegistry chainWriter refactor: common Error struct used in avsRegistry chainWriter ann chainSubscriber Jan 30, 2025
@maximopalopoli maximopalopoli changed the title refactor: common Error struct used in avsRegistry chainWriter ann chainSubscriber refactor: common Error struct used in avsRegistry chainWriter and chainSubscriber Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant