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
ErrorDetailobject from a dictionary.Throws
SerializationError.invalidFormatif required fields are missing or invalid.Declaration
Swift
public init(dictionary: [String : Any]) throwsParameters
dictionaryA dictionary containing the error detail data.
View on GitHub