Detail
public struct Detail : Codable, Sendable
Represents a detailed error response.
-
The raw response associated with the error.
Declaration
Swift
public let rawResponse: RawResponse
-
The HTTP status code of the error response.
Declaration
Swift
public let statusCode: Int
-
Initializes a
Detail
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 error details.