NSInvalidArgumentException
E821135
NSInvalidArgumentException is a Cocoa/Cocoa Touch exception type thrown when a method receives an invalid or inappropriate argument.
All labels observed (1)
| Label | Occurrences |
|---|---|
| NSInvalidArgumentException canonical | 1 |
How this entity was disambiguated
This entity first appeared as the object of triple T9761934 — 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.
NED1
Entity disambiguation (via context triple)
gpt-5-mini-2025-08-07
Target entity: NSInvalidArgumentException Context triple: [NSException, hasSubclass, NSInvalidArgumentException]
-
A.
NSException
NSException is an Objective-C class used in Cocoa and Cocoa Touch frameworks to represent and handle runtime exceptions and error conditions in applications.
-
B.
NSInternalInconsistencyException
NSInternalInconsistencyException is a Cocoa/Cocoa Touch exception type used to signal that an unexpected internal state or logic error has occurred within an application.
-
C.
NSString
NSString is an Objective-C class representing immutable Unicode strings, widely used as the primary string type in Apple’s Cocoa and Cocoa Touch frameworks.
-
D.
NSObject
NSObject is the root base class in Objective-C from which most classes in Cocoa and Cocoa Touch inherit, providing fundamental object behavior such as memory management and message sending.
-
E.
NSNotification
NSNotification is an Objective-C class that encapsulates information about an event, including its name and optional associated data, for use in the Cocoa notification system.
- F. None of above. chosen
- G. Unsure - the case is ambiguous/there is not enough information to decide.
NED2
Entity disambiguation (via description)
gpt-5-mini-2025-08-07
Target entity: NSInvalidArgumentException Target entity description: NSInvalidArgumentException is a Cocoa/Cocoa Touch exception type thrown when a method receives an invalid or inappropriate argument.
-
A.
NSException
NSException is an Objective-C class used in Cocoa and Cocoa Touch frameworks to represent and handle runtime exceptions and error conditions in applications.
-
B.
NSInternalInconsistencyException
NSInternalInconsistencyException is a Cocoa/Cocoa Touch exception type used to signal that an unexpected internal state or logic error has occurred within an application.
-
C.
NSString
NSString is an Objective-C class representing immutable Unicode strings, widely used as the primary string type in Apple’s Cocoa and Cocoa Touch frameworks.
-
D.
NSObject
NSObject is the root base class in Objective-C from which most classes in Cocoa and Cocoa Touch inherit, providing fundamental object behavior such as memory management and message sending.
-
E.
NSNotification
NSNotification is an Objective-C class that encapsulates information about an event, including its name and optional associated data, for use in the Cocoa notification system.
- F. None of above. chosen
Statements (46)
| Predicate | Object |
|---|---|
| instanceOf |
Cocoa Touch exception
ⓘ
Cocoa exception ⓘ Objective-C exception type ⓘ |
| belongsToFrameworkFamily | Foundation NERFINISHED ⓘ |
| bestPractice | avoid by checking method parameters ⓘ |
| canBeCaughtAs | NSException NERFINISHED ⓘ |
| category | runtime exception ⓘ |
| commonCause |
calling method with wrong type of argument
ⓘ
invalid parameter value ⓘ passing nil where nonnull is required ⓘ unrecognized selector sent to instance ⓘ |
| definedIn |
Cocoa
NERFINISHED
ⓘ
Cocoa Touch NERFINISHED ⓘ Foundation framework NERFINISHED ⓘ |
| distinguishedFrom | NSError-based recoverable errors ⓘ |
| documentationSection | Exceptions in Foundation Framework NERFINISHED ⓘ |
| errorDomain | NSException NERFINISHED ⓘ |
| handledBy | @try-@catch blocks in Objective-C ⓘ |
| introducedBy | Apple NERFINISHED ⓘ |
| isFatalByDefault | true ⓘ |
| language | Objective-C NERFINISHED ⓘ |
| loggingBehavior | includes name and reason in exception description ⓘ |
| nameConstantType | NSString * ⓘ |
| namespace | Foundation ⓘ |
| relatedConcept |
NSGenericException
NERFINISHED
ⓘ
NSInternalInconsistencyException ⓘ NSRangeException NERFINISHED ⓘ |
| relatedTo | NSException NERFINISHED ⓘ |
| requires | programmer to validate arguments ⓘ |
| role | indicates programmer error in API usage ⓘ |
| superclassType | NSException NERFINISHED ⓘ |
| thrownBy | Objective-C runtime NERFINISHED ⓘ |
| thrownInContext |
Cocoa API parameter validation
ⓘ
Objective-C message dispatch ⓘ |
| thrownWhen |
method receives inappropriate argument
ⓘ
method receives invalid argument ⓘ |
| typicalHandling | crash if uncaught ⓘ |
| typicalReasonString | "*** -[Class method]: unrecognized selector sent to instance" GENERATED ⓘ |
| usagePattern | checked in @catch(NSException *exception) blocks ⓘ |
| usedInLanguage | Objective-C NERFINISHED ⓘ |
| usedInPlatform |
iOS
NERFINISHED
ⓘ
macOS NERFINISHED ⓘ tvOS NERFINISHED ⓘ watchOS NERFINISHED ⓘ |
| usedSince | early versions of Cocoa ⓘ |
| usedWith | NSExceptionName NERFINISHED ⓘ |
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.
Instruction
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.
Input
Subject: NSInvalidArgumentException Description of subject: NSInvalidArgumentException is a Cocoa/Cocoa Touch exception type thrown when a method receives an invalid or inappropriate argument.
Referenced by (1)
Full triples — surface form annotated when it differs from this entity's canonical label.