ClassFoundation
NSError
class NSError
class NSError
init?(coder: NSCoder)
Initializes an object from data in a given unarchiver.
init(domain: String, code: Int, userInfo: [String : Any]?)
var code: Int
var description: String
Returns a string that describes the contents of the instance.
var domain: String
var hash: Int
Returns an integer that can be used as a table address in a hash table structure.
var helpAnchor: String?
var localizedDescription: String
Retrieve the localized description for this error.
var localizedDescription: String
var localizedFailureReason: String?
var localizedRecoveryOptions: [String]?
var localizedRecoverySuggestion: String?
var recoveryAttempter: Any?
var userInfo: [String : Any]
func copy() -> Any
Returns the object returned by copy(with:)
.
func copy(with: NSZone?) -> Any
Returns a new instance that’s a copy of the current one.
func encode(with: NSCoder)
Encodes an instance of a conforming class using a given archiver.
func isEqual(Any?) -> Bool
Returns a Boolean value that indicates whether the instance is equal to another given object.