wintercg / proposal-sockets-api

Proposal for an API for establishing TCP connections in Non-Browser JavaScript runtime environments
https://sockets-api.proposal.wintercg.org/
Other
46 stars 2 forks source link

Use distinct error names #3

Closed Ethan-Arrowood closed 1 year ago

Ethan-Arrowood commented 1 year ago

I think it would be very useful if we added distinct errors to the spec, sorta along the lines of https://webidl.spec.whatwg.org/#idl-DOMException-error-names . Similarly, Fetch's network error is a good example of something we could adopt. I find consistent errors between platforms a huge miss currently. Would be awesome if we could improve that this time around.

dom96 commented 1 year ago

Sure, let's do it

Ethan-Arrowood commented 1 year ago

I will make a PR updating the spec 👍