-
Notifications
You must be signed in to change notification settings - Fork 55
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
Revised error design #509
Comments
Nominal types design also includes the following. An error type
In a match-statement, a error-match-pattern with a user-defined error type should match only if the shape of the value belongs to type. |
We also need to fix toString for error as described in #459 (comment) |
Still to do:
Last two are about how openness should work for the detail record; not yet 100% confident we have this right. |
I have moved the remaining parts of this into #550. |
This issue covers a new error design that deals with issues #459, #393, #501. It takes advantage of the distinct type feature from #413.
message
andcause
move from the detail record into the error itselfstring
anderror?
respectively()
if not specifiedmessage
andcause
functions to access themmap<anydata|readonly>
(with no predefined fields)...
and a mapping constructor (not sure if this functionality is really necessary)Intersection types #508 allow a type descriptor to describe both the type-ids and the detail record.
The text was updated successfully, but these errors were encountered: