new
TypeScriptstatic new(): NSErrorSwift declarationclass func new() -> Selfclass · SDK 27.1
class NSErrorstatic new(): NSErrorSwift declarationclass func new() -> Selfstatic setUserInfoValueProvider(errorDomain: string): voidSwift declarationclass func setUserInfoValueProvider(forDomain errorDomain: String, provider: (@Sendable (any Error, String) -> Any?)? = nil)static userInfoValueProvider(errorDomain: string): (((arg0: NativeError, arg1: string) => Promise<(unknown) | null>)) | nullSwift declarationclass func userInfoValueProvider(forDomain errorDomain: String) -> (@Sendable (any Error, String) -> Any?)?static init(): NSErrorSwift declarationconvenience init()static initDomainCodeUserInfo(domain: string, code: number, dict?: (Record<string, unknown>) | null): NSErrorSwift declarationinit(domain: String, code: Int, userInfo dict: [String : Any]? = nil)get code(): numberSwift declarationvar code: Int { get }get domain(): stringSwift declarationvar domain: String { get }get helpAnchor(): (string) | nullSwift declarationvar helpAnchor: String? { get }get localizedDescription(): stringSwift declarationvar localizedDescription: String { get }get localizedFailureReason(): (string) | nullSwift declarationvar localizedFailureReason: String? { get }get localizedRecoveryOptions(): (Array<string>) | nullSwift declarationvar localizedRecoveryOptions: [String]? { get }get localizedRecoverySuggestion(): (string) | nullSwift declarationvar localizedRecoverySuggestion: String? { get }get recoveryAttempter(): (unknown) | nullSwift declarationvar recoveryAttempter: Any? { get }get underlyingErrors(): Array<NativeError>Swift declarationvar underlyingErrors: [any Error] { get }get userInfo(): Record<string, unknown>Swift declarationvar userInfo: [String : Any] { get }No declarations were skipped in this snapshot.