We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 693e255 commit 579d7e4Copy full SHA for 579d7e4
FirebaseUI/Core/Implementation/FirebaseArray.m
@@ -157,7 +157,9 @@ - (id)objectAtIndexedSubscript:(NSUInteger)index{
157
}
158
159
- (void)setObject:(id)obj atIndexedSubscript:(NSUInteger)index{
160
- NSAssert(NO, @"Subscripting is read-only on FirebaseArray");
+ @throw [NSException exceptionWithName:@"FirebaseArraySetIndexWithSubscript"
161
+ reason:@"Setting an object as FirebaseArray[i] is not supported."
162
+ userInfo:nil];
163
164
165
@end
0 commit comments