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
This entity first appeared as the object of triple T2142767 — resolving that mention is where its identity was fixed. The disambiguator weighed these candidate entities and picked the highlighted one (or “None”, minting a new entity). This is how homonymy is resolved: the same surface form can point to different entities.
Target entity: NSException Context triple: [NeXTSTEP Foundation Kit, defines, NSException]
-
A.
NS
NS is the standard abbreviation for Norfolk Southern Railway, a major Class I freight railroad operating primarily in the eastern United States.
-
B.
NS
NS (Nederlandse Spoorwegen) is the principal Dutch railway company responsible for most passenger train services in the Netherlands.
-
C.
NST
NST is the standard time abbreviation for the Newfoundland Time Zone, which is uniquely offset by 3.5 hours from Coordinated Universal Time (UTC−3:30).
-
D.
NSUI
NSUI is the student wing of the Indian National Congress, active in universities and colleges across India and involved in student politics and representation.
-
E.
KNS
KNS is the Polish vehicle registration code assigned to the Nowy Sącz area in the Lesser Poland Voivodeship.
- F. None of above. chosen
- G. Unsure - the case is ambiguous/there is not enough information to decide.
Target entity: NSException Target entity description: NSException is an Objective-C class used in Cocoa and Cocoa Touch frameworks to represent and handle runtime exceptions and error conditions in applications.
-
A.
NS
NS is the standard abbreviation for Norfolk Southern Railway, a major Class I freight railroad operating primarily in the eastern United States.
-
B.
NS
NS (Nederlandse Spoorwegen) is the principal Dutch railway company responsible for most passenger train services in the Netherlands.
-
C.
NST
NST is the standard time abbreviation for the Newfoundland Time Zone, which is uniquely offset by 3.5 hours from Coordinated Universal Time (UTC−3:30).
-
D.
NSUI
NSUI is the student wing of the Indian National Congress, active in universities and colleges across India and involved in student politics and representation.
-
E.
KNS
KNS is the Polish vehicle registration code assigned to the Nowy Sącz area in the Lesser Poland Voivodeship.
- F. None of above. chosen
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
The pipeline generated the facts above by prompting gpt-5.1 with this entity's name + description and the instruction below.
You are a knowledge base construction expert. Given a subject entity and a description of it, return factual statements that you know for the subject as a JSON list of dictionaries(triples), where keys must be "subject", "predicate" and "object". The number of facts may be very high, between 25 to 50 or more, for very popular subjects. For less popular subjects, the number of facts can be very low, like 5 or 10. # Requirements - If you don't know the subject at all, return an empty list. - If the subject is not a named entity, return an empty list. - Include at least one triple where predicate is "instanceOf". - Do not get too wordy. - Separate several objects into multiple triples with one object.
Subject: NSException Description of subject: NSException is an Objective-C class used in Cocoa and Cocoa Touch frameworks to represent and handle runtime exceptions and error conditions in applications.
Referenced by (3)
Full triples — surface form annotated when it differs from this entity's canonical label.