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

How to handle exceptions in the specification #414

Closed
m-mohr opened this issue Mar 10, 2023 · 2 comments
Closed

How to handle exceptions in the specification #414

m-mohr opened this issue Mar 10, 2023 · 2 comments

Comments

@m-mohr
Copy link
Member

m-mohr commented Mar 10, 2023

Should errors be "optional"?

Is the specification a best-practice and implementations can change (throw an error) or should always keep the option open (may throw an error).

@m-mohr m-mohr changed the title How to handle error How to handle exceptions in the specification Mar 10, 2023
@m-mohr m-mohr added this to the 2.0.0 milestone Mar 10, 2023
@m-mohr
Copy link
Member Author

m-mohr commented Mar 14, 2023

Candidates:

@m-mohr
Copy link
Member Author

m-mohr commented Mar 31, 2023

We discussed this today (vote: ++++oo). The consensus was to be strict in the user-facing documentation (i.e. the JSON process specification) so that errors are clearly stated without a "uncertainty" such as "may throw". Back-ends can extend their implementations and remove the exception from the documentation. For back-end implementations we add more documentation to the back-end implementation guide (and promote/use it more).

For this issue there is no further to do as we follow our past principles.

@m-mohr m-mohr closed this as not planned Won't fix, can't repro, duplicate, stale Mar 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant