Platforms to show: All Mac Windows Linux Cross-Platform
NSExceptionMBS class
Super class: RuntimeException
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Cocoa | MBS Main Plugin | 7.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The plugin installs exception handling code. If you use the NSExceptionMBS class somewhere in your code, the NSException plugin part will be included and a NSExceptionMBS object will be
Subclass of the RuntimeException class.
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.
- 3 properties
- 2 methods
- method callStackSymbols as string()
- method Constructor Private
- shared method RaiseException(name as string, reason as string, userInfo as dictionary)
- 13 constants
Constants
Constant | Value | Description |
---|---|---|
NSDestinationInvalidException | "NSDestinationInvalidException" | One of the exception names. |
NSGenericException | "NSGenericException" | One of the exception names. |
NSInternalInconsistencyException | "NSInternalInconsistencyException" | One of the exception names. |
NSInvalidArgumentException | "NSInvalidArgumentException" | One of the exception names. |
NSInvalidReceivePortException | "NSInvalidReceivePortException" | One of the exception names. |
NSInvalidSendPortException | "NSInvalidSendPortException" | One of the exception names. |
NSMallocException | "NSMallocException" | One of the exception names. |
NSObjectInaccessibleException | "NSObjectInaccessibleException" | One of the exception names. |
NSObjectNotAvailableException | "NSObjectNotAvailableException" | One of the exception names. |
NSPortReceiveException | "NSPortReceiveException" | One of the exception names. |
NSPortSendException | "NSPortSendException" | One of the exception names. |
NSPortTimeoutException | "NSPortTimeoutException" | One of the exception names. |
NSRangeException | "NSRangeException" | One of the exception names. |
This class has no sub classes.
Some events using this class:
- NSExceptionHandlerMBS.CaughtException(e as NSExceptionMBS, IsMainThread as boolean)
Some examples using this class:
- /AVFoundation/Live picture processing
- /Mac64bit/EventKit/EventKit
- /Mac64bit/Local Authentication
- /MacCG/CoreImage/Barcode Generator
- /MacClassic/Keychain/KeyChain test iOS
- /MacCocoa/readToEndOfFileInBackgroundAndNotify Test
- /MacCocoa/Save and restore State 2
- /MacCocoa/Window titleVisibility
- /Overlay/Overlay with Draw Event
- /PDFKit/PDFView/PDFView customized
Blog Entries
- MBS Xojo Plugins, version 22.6pr1
- More than just a wrapper
- MBS Xojo / Real Studio Plugins, version 14.2pr12
- MBS Xojo / Real Studio Plugins, version 13.2pr3
- MBS Plugins 10.3 Release Notes
Xojo Developer Magazine
- 5.6, page 49: Made in the Shade, Using Core Graphics in a REALbasic Project by Toby Rush
- 15.5, pages 46 to 47: Touché, Using Apple's Touch Bar with Xojo by Marc Zeedar
Release notes
- Version 23.0
- Changed Encryption plugin to not require NSExceptionMBS class.
The items on this page are in the following plugins: MBS Main Plugin.
NSExceptionHandlerMBS - NSExpressionMBS