Platforms to show: All Mac Windows Linux Cross-Platform

NSErrorMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Cocoa MBS Main Plugin 7.7 ✅ Yes ❌ No ❌ No ✅ Yes All
The class for error information in the Cocoa World.
Example
// create an error with a description, e.g. to pass it to a Cocoa function
Var info As New Dictionary
info.Value(NSErrorMBS.NSLocalizedDescriptionKey) = "The file could not be found."
info.Value(NSErrorMBS.NSLocalizedRecoverySuggestionErrorKey) = "Please check the path."

Var e As New NSErrorMBS(NSErrorMBS.NSCocoaErrorDomain, 4, info)

// most plugin functions return errors in this class, so check it like this
MessageBox e.domain + " " + e.code.ToString + ": " + e.localizedDescription

This class has no subclasses.

Blog Entries

Xojo Developer Magazine

Release notes

  • Version 18.5
    • Added more NSErrorMBS methods to create custom error objects.

Some methods using this class:

Some properties using this class:

Some events using this class:

Some examples using this class:

Some related classes:


The items on this page are in the following plugins: MBS Main Plugin.


NSEPSImageRepMBS   -   NSEventMBS


The biggest plugin in space...