ErrorDetail
public struct ErrorDetail : Codable, Sendable
Represents a specific error detail.
-
The error code.
Declaration
Swift
public let code: String?
-
The target field or resource affected by the error.
Declaration
Swift
public let target: String?
-
A message describing the error.
Declaration
Swift
public let message: String?
-
Additional inner error details, if available.
Declaration
Swift
public let innerError: InnerError?
-
Initializes an
ErrorDetail
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 detail data.