-
Notifications
You must be signed in to change notification settings - Fork 52
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
Polywrap Specific Error Structure #701
Comments
Here's a quick brainstorm from @Niraj-Kamdar |
|
My current thoughts are:
|
Currently, we utilize basic strings for errors, wrapping them within the various languages we have software in (JavaScript & AssemblyScript
Error
structure, Rust's Err structure, etc).In the same way that we have standardized structures for the various cross-module operations we support (invoke & subinvoke for example), we should have a standardize error structure that is used.
Information within this structure would include:
Utilizing this information, we can re-create an error-stack, enabling them to further debug where the root cause came from.
Currently we do this through string concatenation & "good faith" that the error propagators in the stack appropriately concatenate to the error string.
Utilizing this method it'd be standard to "push" your error to the stack, and return it to the caller/user of your wrappers/plugins.
Example error stack:
The text was updated successfully, but these errors were encountered: