Class representing a request error.
Optional
Static
Optional override for formatting stack traces
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Returns a string representation of the RequestError.
A string describing the error.
const error = new RequestError('Something went wrong');console.log(error.toString()); // "RequestError: Something went wrong" Copy
const error = new RequestError('Something went wrong');console.log(error.toString()); // "RequestError: Something went wrong"
Create .stack property on a target object
Class representing a request error.