Skip to content

Accept jsonRpcError as error type in rpcserver pkg #53

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

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

jeyldii
Copy link

@jeyldii jeyldii commented Jul 22, 2025

No description provided.

@jeyldii jeyldii force-pushed the feature/custom-rpc-errors branch from 9f9a1dd to 3fa3ecd Compare July 22, 2025 16:07
@jeyldii jeyldii force-pushed the feature/custom-rpc-errors branch from 0642639 to 8fb5370 Compare August 4, 2025 13:08
@@ -13,21 +13,24 @@ var (
ErrMustReturnError = errors.New("function must return error as a last return value")
ErrMustHaveContext = errors.New("function must have context.Context as a first argument")
ErrTooManyReturnValues = errors.New("too many return values")
ErrVariadicArgument = errors.New("variadic argument is only allowed to be sole")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please clarify / rephrase "only allowed to be sole" -- unclear meaning

@metachris metachris requested review from dvush and TymKh August 13, 2025 08:23
@jeyldii jeyldii force-pushed the feature/custom-rpc-errors branch from cfd2b2f to fbf0eaf Compare August 18, 2025 15:59
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.

3 participants