decodingFailurePolicy
The action to take when this unarchiver fails to decode an entry.
Declaration
var decodingFailurePolicy: NSCoder.DecodingFailurePolicy { get set }Discussion
The unarchiver may fail to decode an entry for the following reasons:
The keyed archive data is corrupt or missing.
A type mismatch occurs, such as expecting a class by calling decodeObject(of:forKey:), but the unarchiver encounters a numeric value for that key instead. This also occurs when decodeIntForKey: encounters a value encoded as floating-point, or vice versa.
A secure coding violation occurs. This happens when attempting to decode an object that doesn’t conform to NSSecureCoding. This also happens when the encoded type doesn’t match any of the classes passed to unarchivedObject(ofClasses:from:).