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.
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 ⓘ |
Referenced by (1)
Full triples — surface form annotated when it differs from this entity's canonical label.