Protocolswift 6.0.3Foundation
CustomNSError
Describes an error type that specifically provides a domain, code, and user-info dictionary.
protocol CustomNSError : Error
Browse conforming typesDescribes an error type that specifically provides a domain, code, and user-info dictionary.
protocol CustomNSError : Error
import Foundation
protocol Error : Sendable
A type representing an error value that can be thrown.
protocol Sendable
static var errorDomain: String { get }
The domain of the error.
var errorCode: Int { get }
The error code within the given domain.
var errorUserInfo: [String : Any] { get }
The user-info dictionary.
static var errorDomain: String { get }
Default domain of the error.
var errorCode: Int { get }
The error code within the given domain.
var errorUserInfo: [String : Any] { get }
The default user-info dictionary.
protocol RawRepresentable<RawValue>
A type that can be converted to and from an associated raw value.
protocol FixedWidthInteger : BinaryInteger, LosslessStringConvertible where Self.Magnitude : FixedWidthInteger, Self.Magnitude : UnsignedInteger, Self.Stride : FixedWidthInteger, Self.Stride : SignedInteger
An integer type that uses a fixed size for every instance.
var errorCode: Int { get }