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 2

How this entity was disambiguated

Statements (45)

Predicate Object
instanceOf Foundation framework exception ⓘ
Objective-C exception type ⓘ
appearsIn Objective-C runtime error logs ⓘ
associatedType NSRange ⓘ
bestPractice validate indices and ranges before use ⓘ
canBeCaughtAs NSException ⓘ
category bounds error ⓘ
commonCause failure to validate indices ⓘ
incorrect length calculations ⓘ
off-by-one errors ⓘ
definedIn Foundation framework ⓘ
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 ⓘ
programmingLanguage Objective-C ⓘ
reasonTypicallyIncludes index or range values ⓘ
relatedTo NSRange ⓘ
superclass NSException ⓘ
thrownAtRuntime true ⓘ
thrownBy NSArray ⓘ
NSAttributedString ⓘ
NSData ⓘ
NSIndexSet ⓘ
NSMutableArray ⓘ
NSMutableAttributedString ⓘ
NSMutableData ⓘ
NSMutableIndexSet ⓘ
NSMutableString ⓘ
NSString ⓘ
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 ⓘ
Cocoa ⓘ
Cocoa Touch ⓘ
UIKit ⓘ

How these facts were elicited

Referenced by (2)

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

NSException → hasSubclass → NSRangeException ⓘ
NSInvalidArgumentException → relatedConcept → NSRangeException ⓘ