One Logo Pool Ball
Foundation · IOS API REFERENCE

NSException

class · SDK 27.1

class NSException

Members (7)

init

init

TypeScript
static init(aName: NSExceptionName, aReason?: (string) | null, aUserInfo?: (NativeMap<unknown, unknown>) | null): NSException
Swift declaration
init(name aName: NSExceptionName, reason aReason: String?, userInfo aUserInfo: [AnyHashable : Any]? = nil)
method

raise

TypeScript
raise(): void
Swift declaration
func raise()
get · iOS 2.0+

callStackReturnAddresses

TypeScript
get callStackReturnAddresses(): Array<NSNumber>
Swift declaration
var callStackReturnAddresses: [NSNumber] { get }
get · iOS 4.0+

callStackSymbols

TypeScript
get callStackSymbols(): Array<string>
Swift declaration
var callStackSymbols: [String] { get }
get

name

TypeScript
get name(): NSExceptionName
Swift declaration
var name: NSExceptionName { get }
get

reason

TypeScript
get reason(): (string) | null
Swift declaration
var reason: String? { get }
get

userInfo

TypeScript
get userInfo(): (NativeMap<unknown, unknown>) | null
Swift declaration
var 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 →