-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Less error prone errors in actor invokation interface. #59
Comments
Another option would be to use Then we would keep the I think this option is better (it means we don't have to write our own facilities for wrapping errors in additional messages but we also shoudl firewall/wrap all APIs. |
In case of actor code calling API, both of those ways would look the same. |
I will probably try to prototype something with |
I think i like the actorError type idea the most. It means we can't ever accidentally return an incorrect error. using the type system to enforce some more correctness |
It makes sense to use explicit type as this is a cohesive system. |
ffiwrapper: Insert alignment between pieces
…-func Separate precommit deposit estimation func
* Remove boilerplate from mir_test * fix ctrl-c in tests
Currently inokation interface is:
It is hard to differentiate which errors should be reported as errors and which should be return codes.
There are two ideas I have, either we change the interface to:
And create wrappers around all apis to return actorError.
Then handling of api call would be:
The text was updated successfully, but these errors were encountered: