Platforms to show: All Mac Windows Linux Cross-Platform
Back to NSErrorMBS class.
NSErrorMBS.error(Domain as String, Code as Integer, UserInfo as dictionary = nil) as NSErrorMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS Main Plugin | 18.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
domain: The error domain—this can be one of the predefined NSError domains, or an arbitrary string describing a custom domain. domain must not be nil.
code: The error code for the error.
dict: The userInfo dictionary for the error. userInfo may be nil.
Returns an NSErrorMBS object for domain with the specified error code and the dictionary of arbitrary data userInfo.
NSErrorMBS.NSCocoaErrorDomain as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS Main Plugin | 18.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
NSErrorMBS.NSFilePathErrorKey as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS Main Plugin | 18.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Contains the file path of the error.
NSErrorMBS.NSLocalizedDescriptionKey as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS Main Plugin | 18.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The corresponding value is a localized string representation of the error that, if present, will be returned by localizedDescription.
NSErrorMBS.NSLocalizedFailureReasonErrorKey as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS Main Plugin | 18.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The corresponding value is a localized string representation containing the reason for the failure that, if present, will be returned by localizedFailureReason.
NSErrorMBS.NSLocalizedRecoveryOptionsErrorKey as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS Main Plugin | 18.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The corresponding value is an array containing the localized titles of buttons appropriate for displaying in an alert panel.
The first string is the title of the right-most and default button, the second the one to the left, and so on. The recovery options should be appropriate for the recovery suggestion returned by localizedRecoverySuggestion.
NSErrorMBS.NSLocalizedRecoverySuggestionErrorKey as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS Main Plugin | 18.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The corresponding value is a string containing the localized recovery suggestion for the error.
This string is suitable for displaying as the secondary message in an alert panel.
NSErrorMBS.NSMachErrorDomain as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS Main Plugin | 18.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
NSErrorMBS.NSOSStatusErrorDomain as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS Main Plugin | 18.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
NSErrorMBS.NSPOSIXErrorDomain as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS Main Plugin | 18.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
NSErrorMBS.NSRecoveryAttempterErrorKey as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS Main Plugin | 18.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The corresponding value is an object that conforms to the NSErrorRecoveryAttempting informal protocol.
The recovery attempter must be an object that can correctly interpret an index into the array returned by recoveryAttempter.
NSErrorMBS.NSStringEncodingErrorKey as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS Main Plugin | 18.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The corresponding value is an NSNumber object containing the NSStringEncoding value.
NSErrorMBS.NSUnderlyingErrorKey as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS Main Plugin | 18.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The corresponding value is an error that was encountered in an underlying implementation and caused the error that the receiver represents to occur.
NSErrorMBS.NSURLErrorKey as String
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS Main Plugin | 18.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The corresponding value is an NSURL object.
The items on this page are in the following plugins: MBS Main Plugin.
