Foundation · IOS API REFERENCE
NSException
class · SDK 27.1
class NSException
Members (7)
initinit
TypeScriptstatic init(aName: NSExceptionName, aReason?: (string) | null, aUserInfo?: (NativeMap<unknown, unknown>) | null): NSException
Swift declarationinit(name aName: NSExceptionName, reason aReason: String?, userInfo aUserInfo: [AnyHashable : Any]? = nil)
methodraise
TypeScriptraise(): void
Swift declarationfunc raise()
get · iOS 2.0+callStackReturnAddresses
TypeScriptget callStackReturnAddresses(): Array<NSNumber>
Swift declarationvar callStackReturnAddresses: [NSNumber] { get }
get · iOS 4.0+callStackSymbols
TypeScriptget callStackSymbols(): Array<string>
Swift declarationvar callStackSymbols: [String] { get }
getname
TypeScriptget name(): NSExceptionName
Swift declarationvar name: NSExceptionName { get }
getreason
TypeScriptget reason(): (string) | null
Swift declarationvar reason: String? { get }
getuserInfo
TypeScriptget userInfo(): (NativeMap<unknown, unknown>) | null
Swift declarationvar userInfo: [AnyHashable : Any]? { get }
Skipped declarations
2 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
NSException.raise(_:format:arguments:)
A C variable argument list cannot cross the bridge.
NSException.init()
inherited init: cannot prove legal (class declares 1 custom initializer)
All Foundation types →