Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ampproject/amphtml
/ createExpectedError
Function
createExpectedError
src/core/error/index.js:97–101 ·
view source on GitHub ↗
(var_args)
Source
from the content-addressed store, hash-verified
95
* @
return
{Error}
96
*/
97
export
function
createExpectedError(var_args) {
98
const
error = createError.apply(null, arguments);
99
error.expected = true;
100
return
error;
101
}
102
103
/**
104
* Reports an error message.
Callers
nothing calls this directly
Calls
1
apply
Method · 0.80
Tested by
no test coverage detected