ChatError

public final class ChatError : Codable, Swift.Error

The Communication Services error.

Properties

  • The error code.

    Declaration

    Swift

    public let code: String
  • The error message.

    Declaration

    Swift

    public let message: String
  • The error target.

    Declaration

    Swift

    public let target: String?
  • Further details about specific errors that led to this error.

    Declaration

    Swift

    public let details: [ChatError]?
  • The inner error if any.

    Declaration

    Swift

    public let innerError: ChatError?

Initializers

  • Initialize a ChatError structure.

    Declaration

    Swift

    public init(
        code: String, message: String, target: String? = nil, details: [ChatError]? = nil, innerError: ChatError? = nil
    )

    Parameters

    code

    The error code.

    message

    The error message.

    target

    The error target.

    details

    Further details about specific errors that led to this error.

    innerError

    The inner error if any.

Codable

  • Initialize a ChatError structure from decoder

    Declaration

    Swift

    public init(from decoder: Decoder) throws
  • Encode a ChatError structure

    Declaration

    Swift

    public func encode(to encoder: Encoder) throws