NSException

E236689

NSException is an Objective-C class used in Cocoa and Cocoa Touch frameworks to represent and handle runtime exceptions and error conditions in applications.

All labels observed (3)

Label Occurrences
NSException canonical 1
NSInvalidArgumentException 1
NSRangeException 1

How this entity was disambiguated

Statements (46)

Predicate Object
instanceOf Foundation framework class
Objective-C class
availableOn iOS
macOS
tvOS
watchOS
canBeBridgedTo Swift Error handling via NSException bridging (limited)
category error handling construct
conformsTo NSCopying
definedIn Foundation framework
designPattern represents exceptional control flow
hasClassMethod +exceptionWithName:reason:userInfo:
+raise:format:
+raise:format:arguments:
hasDocumentationAt https://developer.apple.com/documentation/foundation/nsexception
hasInitializer -initWithName:reason:userInfo:
hasInstanceMethod -name
-raise
-reason
-userInfo
hasProperty name
reason
userInfo
hasSubclass NSInternalInconsistencyException
NSInvalidArgumentException
NSRangeException
headerFile <Foundation/NSException.h>
introducedBy Apple Inc.
surface form: Apple
isRootExceptionClassIn Cocoa
Cocoa Touch
language Objective-C
memoryManagementModel reference counted
module Foundation
represents error condition
runtime exception
superclassOf NSInternalInconsistencyException
NSException self-linksurface differs
surface form: NSInvalidArgumentException

NSException self-linksurface differs
surface form: NSRangeException
threadBehavior unhandled NSException terminates the current thread
typicallyNotUsedFor ordinary error handling in Cocoa APIs
usedFor structured exception handling in Objective-C
usedIn Cocoa
Cocoa Touch
usedWith @catch directive
@finally directive
@try directive

How these facts were elicited

Referenced by (3)

Full triples — surface form annotated when it differs from this entity's canonical label.

NeXTSTEP Foundation Kit defines NSException
NSException superclassOf NSException self-linksurface differs
this entity surface form: NSRangeException
NSException superclassOf NSException self-linksurface differs
this entity surface form: NSInvalidArgumentException