ErrorInfo

class ErrorInfo(val message: String, val code: Int, val statusCode: Int, val href: String?, val cause: ErrorInfo?, val requestId: String?)

Represents detailed information about an error encountered in the system.

Constructors

Link copied to clipboard
constructor(message: String, code: Int, statusCode: Int, href: String?, cause: ErrorInfo?, requestId: String?)

Properties

Link copied to clipboard

An optional nested ErrorInfo object representing the underlying cause of this error.

Link copied to clipboard
val code: Int

An Ably-specific code representing the error.

Link copied to clipboard
val href: String?

An optional url providing additional context or documentation for the error.

Link copied to clipboard

A description of the error.

Link copied to clipboard

An optional requestId for the request associated with the error.

Link copied to clipboard

The HTTP status code associated with the error, if applicable.

Functions

Link copied to clipboard
open override fun toString(): String