NSRangeException
E821134
NSRangeException is an Objective-C exception type that indicates an attempt to access elements outside the valid bounds of a collection or range.
All labels observed (1)
| Label | Occurrences |
|---|---|
| NSRangeException canonical | 1 |
How this entity was disambiguated
This entity first appeared as the object of triple T9761933 — 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: NSRangeException Context triple: [NSException, hasSubclass, NSRangeException]
-
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.
NSArray
NSArray is an Objective-C class in Apple’s Foundation framework that represents an ordered, immutable collection of objects.
-
E.
NSFastEnumeration
NSFastEnumeration is an Objective-C protocol that enables efficient, fast enumeration of collections using the for-in syntax.
- F. None of above. chosen
- G. Unsure - the case is ambiguous/there is not enough information to decide.
Target entity: NSRangeException Target entity description: NSRangeException is an Objective-C exception type that indicates an attempt to access elements outside the valid bounds of a collection or range.
-
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.
NSArray
NSArray is an Objective-C class in Apple’s Foundation framework that represents an ordered, immutable collection of objects.
-
E.
NSFastEnumeration
NSFastEnumeration is an Objective-C protocol that enables efficient, fast enumeration of collections using the for-in syntax.
- F. None of above. chosen
Statements (45)
| Predicate | Object |
|---|---|
| instanceOf |
Foundation framework exception
ⓘ
Objective-C exception type ⓘ |
| appearsIn | Objective-C runtime error logs ⓘ |
| associatedType | NSRange NERFINISHED ⓘ |
| bestPractice | validate indices and ranges before use ⓘ |
| canBeCaughtAs | NSException NERFINISHED ⓘ |
| category | bounds error ⓘ |
| commonCause |
failure to validate indices
ⓘ
incorrect length calculations ⓘ off-by-one errors ⓘ |
| definedIn | Foundation framework NERFINISHED ⓘ |
| errorType | programming error ⓘ |
| handledBy | @try-@catch blocks ⓘ |
| indicates |
attempt to access elements outside valid bounds
ⓘ
index out of range ⓘ range out of bounds ⓘ |
| loggingKey | reason ⓘ |
| nameConstant | NSRangeException ⓘ |
| notIntendedFor | user-recoverable validation errors ⓘ |
| platform | Apple platforms NERFINISHED ⓘ |
| programmingLanguage | Objective-C NERFINISHED ⓘ |
| reasonTypicallyIncludes | index or range values ⓘ |
| relatedTo | NSRange NERFINISHED ⓘ |
| superclass | NSException NERFINISHED ⓘ |
| thrownAtRuntime | true ⓘ |
| thrownBy |
NSArray
NERFINISHED
ⓘ
NSAttributedString NERFINISHED ⓘ NSData NERFINISHED ⓘ NSIndexSet NERFINISHED ⓘ NSMutableArray NERFINISHED ⓘ NSMutableAttributedString ⓘ NSMutableData ⓘ NSMutableIndexSet ⓘ NSMutableString NERFINISHED ⓘ NSString NERFINISHED ⓘ |
| triggeredBy |
array index greater than or equal to count
ⓘ
array index less than zero ⓘ enumeration beyond collection bounds ⓘ invalid NSRange argument ⓘ invalid index into collection ⓘ substring range beyond string length ⓘ |
| usedIn |
AppKit
NERFINISHED
ⓘ
Cocoa ⓘ Cocoa Touch NERFINISHED ⓘ UIKit 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.
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: NSRangeException Description of subject: NSRangeException is an Objective-C exception type that indicates an attempt to access elements outside the valid bounds of a collection or range.
Referenced by (1)
Full triples — surface form annotated when it differs from this entity's canonical label.