# Class LittleGhost::Providers::Bedrock::StreamError

Documentation version: Edge

Canonical HTML: https://littleghostai.org/docs/LittleGhost/Providers/Bedrock/StreamError.html

Represents an error event returned inside a Bedrock stream.

## Inheritance

`LittleGhost::Providers::Bedrock::StreamError < LittleGhost::ProviderError`

## Attributes

<a id="attribute-i-event_type"></a>
### `event_type` (R)

Normalized Bedrock event type used to decide whether a retry is safe.

## Class methods

<a id="method-c-new"></a>
### `.new`

```ruby
.new(message, event_type:)
```

Creates a stream error for `event_type`.

## Instance methods

<a id="method-i-retryable-3F"></a>
### `#retryable?`

```ruby
#retryable?()
```

Indicates whether LittleGhost may retry this Bedrock event.
