Instance Property

error

An error in the top-level encode.

Declaration

@property(readonly, copy) NSError *error;

Discussion

The meaning of this property depends on the setting of the decodingFailurePolicy property. For NSDecodingFailurePolicyRaiseException, this property is always nil. For NSDecodingFailurePolicySetErrorAndReturn, a non-nil value represents the first error encountered while decoding the archive.

See Also

Managing Decode Errors

- failWithError:

Signals to this coder that the decode operation has failed.