Enumeration

NSCoder.DecodingFailurePolicy

Policies describing the action the coder should take when encountering decode failures.

Declaration

enum DecodingFailurePolicy : Int

Topics

Failure Policies

case raiseException

A failure policy that directs the coder to raise an exception.

case setErrorAndReturn

A failure policy that directs the coder to capture the failure as an error object.

See Also

Inspecting a Coder

var allowsKeyedCoding: Bool

A Boolean value that indicates whether the receiver supports keyed coding of objects.

func containsValue(forKey: String) -> Bool

Returns a Boolean value that indicates whether an encoded value is available for a string.

var decodingFailurePolicy: NSCoder.DecodingFailurePolicy

The action the coder should take when decoding fails.