# SimpleQueueCacheCursor.GetCurrent(Exception?)

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

[Source](https://github.com/dotnet/orleans/blob/b7a9e3e1c9c54b3cec3a467c5734bf7744541bcf/src/Orleans.Streaming/Common/SimpleCache/SimpleQueueCacheCursor.cs#L68-L71)

```csharp
public virtual 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.
