@@ -58,21 +58,21 @@ } - (id)objectAtIndex: (size_t)index { if (index >= _range.length) - @throw [OFOutOfRangeException exceptionWithClass: [self class]]; + @throw [OFOutOfRangeException exception]; return [_array objectAtIndex: index + _range.location]; } - (void)getObjects: (id*)buffer inRange: (of_range_t)range { if (range.length > SIZE_MAX - range.location || range.location + range.length > _range.length) - @throw [OFOutOfRangeException exceptionWithClass: [self class]]; + @throw [OFOutOfRangeException exception]; range.location += _range.location; return [_array getObjects: buffer inRange: range]; @@ -110,12 +110,12 @@ - (OFArray*)objectsInRange: (of_range_t)range { if (range.length > SIZE_MAX - range.location || range.location + range.length > _range.length) - @throw [OFOutOfRangeException exceptionWithClass: [self class]]; + @throw [OFOutOfRangeException exception]; range.location += _range.location; return [_array objectsInRange: range]; } @end