Construct an ErrorInfo object.
A string describing the error.
Ably error code.
HTTP Status Code corresponding to this error.
Optional
cause: string | Types.ErrorInfo | Error
The underlying cause of the error.
Optional
cause
The underlying cause of the error, where applicable.
Ably error code.
Additional message information, where available.
Optional
stack
HTTP Status Code corresponding to this error, where applicable.
Static
Optional
prepareOptional override for formatting stack traces
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Static
stackStatic
captureGenerated using TypeDoc
A generic Ably error object that contains an Ably-specific status code, and a generic status code. Errors returned from the Ably server are compatible with the
ErrorInfo
structure and should result in errors that inherit fromErrorInfo
.