Create a new response error.
Optional
message: stringOptional
traceback: stringThe response associated with the error.
Optional
stackThe traceback associated with the error.
Static
Private
_defaultStatic
Optional
prepareOptional override for formatting stack traces
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Static
stackStatic
captureCreate .stack property on a target object
Optional
constructorOpt: FunctionStatic
createCreate a ResponseError from a response, handling the traceback and message as appropriate.
The response object.
A promise that resolves with a ResponseError
object.
Generated using TypeDoc
A wrapped error for a fetch response.