-
Notifications
You must be signed in to change notification settings - Fork 341
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
Should specify the error messages #1147
Comments
The message field of exceptions is implementation-defined. I can see why we might want to standardize it, but that should go across all exceptions in the platform, not just this one. |
That would be nice, it's a pain when unit testing things:
Starting with Fetch would be a good start :-) |
Given the desires use-case of being able to identify a specific type of error and that:
I think the platform meta issue might better be to:
So for the specific unit testing situation here, the test would:
|
@asutherland I was thinking the opposite. We would standardize |
Ah, I definitely see the argument for that. I presume that's something to bring up with the W3C TAG? |
Yeah, probably. @cynthia already did some work to that end in w3ctag/design-principles#264. |
Example:
"Failed to execute 'text' on 'Response': body stream already read"
"Response.text: Body has already been consumed."
"Body is disturbed or locked"
"Body has already been read"
"body used already for: "
"Already read"
The standard is not precise enough: "If object is disturbed or locked, then return a promise rejected with a TypeError."
The text was updated successfully, but these errors were encountered: