ChatError

@objc
public enum ChatError : Int, LocalizedError, CustomNSError

Potential errors returned from the ChatProviderSDK

  • chatIsNotInitialized Will be thrown if the Chat instance isn’t initialized before initializing ChatEngine

  • disconnected Will be emitted when a request is attempted to be sent, but the connection state is disconnected.

  • Chat was not initialized

    Declaration

    Swift

    case chatIsNotInitialized
  • Chat is disconnected

    Declaration

    Swift

    case disconnected
  • Retrieve the localized description for this error.

    Declaration

    Swift

    public var localizedDescription: String { get }
  • A localized message describing how one might recover from the failure.

    Declaration

    Swift

    public var recoverySuggestion: String? { get }
  • The domain of the error.

    Declaration

    Swift

    public static var errorDomain: String { get }
  • The error code within the given domain.

    Declaration

    Swift

    public var errorCode: Int { get }
  • The user-info dictionary.

    Declaration

    Swift

    public var errorUserInfo: [String : Any] { get }