Flattened array elements in exception