-
Notifications
You must be signed in to change notification settings - Fork 60
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
Error handling and edge cases #229
Comments
I am assigning this issue to myself and would like to produce a PR for the spec about it. |
Labeled/assigned to you so it's easier to track it |
@kdenhartog : I did read #83 and think about it. But I am not sure I understand the distinction between specific errors in general scenarios, and generic structure and default errors. Did you want me to define a few generic error codes (e.g., like the ones in errno.h from *nix)? Please feel free to push me to change the content; I just wasn't sure if I was covering your thinking enough. |
Based on what you're going towards in #232 I think we're on the right track. My thoughts on the topic aren't completely fully formed yet, but I'm aiming for the case where an error code response can be branched on to reduce the logic in the error code flows. Specifically, I was thinking more along the lines of generic structure and default errors. Then these would be extended for more specific scenarios if needed, or if debugging is going on. I need to spend some time re-reading the problem report RFC before I think I can get a fully formed opinion on the topic. |
You mean like an error code hierarchy -- so you can branch on errors at a high level even if you don't understand the low-level detail? Something like |
We discussed this on the 7-19 call and I thought this would be alright. It allowed for error branching based on classes of errors which is one of the things I was going for with default errors. I think we'll need to also define the basic errors that we want to support as well similar to how HTTP defined the original codes. Probably worth allowing this to be extensible to a certain degree with some limitations so the defaults actually remain generic enough. |
It looks like the spec doesn't say how to handle errors and edger cases.
For examples:
keyAgreement
types in DID DOC) between sender and receiverIt would be great if the spec can address some of this edge cases or provide a general strategy what to do in this cases: just terminate communication, send a specific error message, etc.
The text was updated successfully, but these errors were encountered: