Skip to content

Instance PropertyFoundationEssentials

underlyingErrors

iOS 14.5+ iPadOS 14.5+ Mac Catalyst 14.5+ macOS 11.3+ tvOS 14.5+ watchOS 7.4+
A list of underlying errors, if any. It includes the values of both NSUnderlyingErrorKey and NSMultipleUnderlyingErrorsKey. If there are no underlying errors, returns an empty array.
var underlyingErrors: [any Error] { get }