ChatError
public final class ChatError : Codable, Swift.Error
The Communication Services error.
-
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?
-
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.
-
Initialize a
ChatError
structure from decoderDeclaration
Swift
public init(from decoder: Decoder) throws
-
Encode a
ChatError
structureDeclaration
Swift
public func encode(to encoder: Encoder) throws