Construct an ErrorInfo object.
A string describing the error.
Ably error code.
HTTP Status Code corresponding to this error.
Optional cause: ErrorInfo
The underlying cause of the error.
Optional detail: Record<string, string>
Optional map of string key-value pairs containing structured metadata associated with the error.
Optional cause
The underlying cause of the error, where applicable.
Ably error code.
Optional detail
Optional map of string key-value pairs containing structured metadata associated with the error.
Optional hint
Actionable remediation guidance describing how to fix the error — distinct from
message, which summarises what went wrong. Written as prose suitable for an
agent or human to act on without further lookup (typically including the
canonical replacement call and a doc link where applicable). Present only on
SDK-originating errors that have meaningful remediation steps.
Additional message information, where available.
Optional stack
HTTP Status Code corresponding to this error, where applicable.
Static Optional prepareOptional override for formatting 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
ErrorInfostructure and should result in errors that inherit fromErrorInfo.