# Class LittleGhost::Providers::OpenAICompatible::StreamError

Documentation version: Edge

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

Represents a structured error received inside an otherwise successful provider
stream.

## Inheritance

`LittleGhost::Providers::OpenAICompatible::StreamError < LittleGhost::ProviderError`

## Attributes

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

Normalized provider error type and optional provider code.

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

Normalized provider error type and optional provider code.

## Class methods

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

```ruby
.new(message, error_type: nil, code: nil)
```

Creates a structured stream error.

## Instance methods

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

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

Indicates whether LittleGhost may retry this provider error.
