OptionalcauseThe underlying cause of the error, where applicable.
Ably error code.
OptionaldetailOptional map of string key-value pairs containing structured metadata associated with the error.
Additional message information, where available.
OptionalremediationActionable 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.
OptionalstackHTTP Status Code corresponding to this error, where applicable.
The runtime
ErrorInfo, of which there is exactly one copy, here, so that an error raised by any Pub/Sub package or any SDK layered on it passesinstanceof ErrorInfoagainst the class imported from any other.Its instances are exactly the API's
ErrorInfo, so an error read off a client is assignable to it. It adds the factories that the SDKs layered on Pub/Sub build their own errors with.