Skip to content
This repository was archived by the owner on Nov 10, 2025. It is now read-only.

add throwOnError param to RpcClient Send/SendAsync#763

Merged
shargon merged 4 commits intoneo-project:masterfrom
devhawk:devhawk/no-throw-client
Oct 5, 2022
Merged

add throwOnError param to RpcClient Send/SendAsync#763
shargon merged 4 commits intoneo-project:masterfrom
devhawk:devhawk/no-throw-client

Conversation

@devhawk
Copy link
Contributor

@devhawk devhawk commented Sep 16, 2022

The FindStates JSON RPC method in the state service API throws a Key Not Found exception when the caller asks for an invalid key. On the calling side, I would like to receive the RpcResponse directly, without letting AsRpcResponse automatically throw an exception when the RPcResponse Error field is not null

@devhawk
Copy link
Contributor Author

devhawk commented Oct 4, 2022

Am I supposed to merge this or am I supposed to wait for @erikzhang or @shargon to do it?

@shargon shargon merged commit f84d63c into neo-project:master Oct 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants