Instance Property

code

The error code.

Declaration

var code: Int { get }

Discussion

Note that errors are domain-specific.

See Also

Getting Error Properties

var domain: String

A string containing the error domain.

var userInfo: [String : Any]

The user info dictionary.