Skip to content
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

Cover AdditionalExpectedResponses as error responses #560

Open
Tracked by #548
relu91 opened this issue Aug 6, 2024 · 1 comment
Open
Tracked by #548

Cover AdditionalExpectedResponses as error responses #560

relu91 opened this issue Aug 6, 2024 · 1 comment

Comments

@relu91
Copy link
Member

relu91 commented Aug 6, 2024

Current TD specification introduced the concept of additionalResponses to model APIs that might return different payloads from the same affordance. This issue focuses on AdditionalExpectedResponses marked with the field success: false (default). The goal is to understand how to treat these responses in our runtime. The discussion is strongly connected with #200.

@relu91
Copy link
Member Author

relu91 commented Dec 11, 2024

Call 11/12:

  • @relu91 As a draft idea we can just instruct runtimes to throw one general OperationError
  • Should we throw or return the error?
  • @JKRhb Introduce a custom error type to wrap the error and access it with a value function.
  • @ashimura we should talk about error handling in general in overall Scripting API, depending on potential responses.

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

No branches or pull requests

1 participant