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
ChatErrorstructure.Declaration
Swift
public init( code: String, message: String, target: String? = nil, details: [ChatError]? = nil, innerError: ChatError? = nil )Parameters
codeThe error code.
messageThe error message.
targetThe error target.
detailsFurther details about specific errors that led to this error.
innerErrorThe inner error if any.
-
Initialize a
ChatErrorstructure from decoderDeclaration
Swift
public init(from decoder: Decoder) throws -
Encode a
ChatErrorstructureDeclaration
Swift
public func encode(to encoder: Encoder) throws
View on GitHub
ChatError Class Reference