JSONDecodingError
ENUM
JSONDecodingError
Swift
1public enum JSONDecodingError: Error, LocalizedError, HashableCases
missingValue
Swift
1case missingValuenullValue
Swift
1case nullValuewrongType
Swift
1case wrongTypecouldNotConvert(value:to:)
Swift
1case couldNotConvert(value: AnyHashable, to: Any.Type)Properties
errorDescription
Swift
1public var errorDescription: String?Methods
==(_:_:)
Swift
1public static func == (lhs: JSONDecodingError, rhs: JSONDecodingError) -> BoolParameters
| Name | Description |
|---|---|
| lhs | A value to compare. |
| rhs | Another value to compare. |
hash(into:)
Swift
1public func hash(into hasher: inout Hasher)Parameters
| Name | Description |
|---|---|
| hasher | The hasher to use when combining the components of this instance. |