# IQueueCacheCursor.GetCurrent(Exception)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.iqueuecachecursor/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.streaming/orleans.streams.iqueuecachecursor/methods/)

```csharp
public abstract IBatchContainer GetCurrent(out Exception exception)
```

Get the current value.

### Parameters

- `exception` (`Exception`): The resulting exception.

### Returns

Returns the current batch container. If null then the stream has completed or there was a stream error. If there was a stream error, an error exception will be provided in the output.
