RawResponse
public struct RawResponse : Codable, Sendable
Represents the raw response of an error.
-
The unique identifier of the error.
Declaration
Swift
public let id: String?
-
The error code.
Declaration
Swift
public let code: String?
-
A message describing the error.
Declaration
Swift
public let message: String?
-
Additional error details.
Declaration
Swift
public let details: [ErrorDetail]?
-
Initializes a
RawResponse
object from a dictionary.Throws
SerializationError.invalidFormat
if required fields are missing or invalid.Declaration
Swift
public init(dictionary: [String : Any]) throws
Parameters
dictionary
A dictionary containing the raw response data.