ProtocolFoundation5.9.0
CustomNSError
Describes an error type that specifically provides a domain, code, and user-info dictionary.
protocol CustomNSError : Error
Supertypes
protocol Error
A type representing an error value that can be thrown.
protocol Sendable
A type whose values can safely be passed across concurrency domains by copying.
Requirements
static var errorDomain: String
The domain of the error.
var errorCode: Int
The error code within the given domain.
var errorUserInfo: [String : Any]
The user-info dictionary.