Table of Contents

Class StreamReadException

Namespace
Mythosia.AI.Models.Streaming
Assembly
Mythosia.AI.Abstractions.dll

Thrown when an SSE streaming read fails. Wraps the underlying exception (e.g. IOException, HttpRequestException) and attaches a StreamDiagnostics snapshot taken at the moment of failure so callers can see how far the stream got before dying.

public class StreamReadException : Exception, ISerializable
Inheritance
StreamReadException
Implements
Inherited Members

Constructors

StreamReadException(string, StreamDiagnostics, Exception)

public StreamReadException(string message, StreamDiagnostics diagnostics, Exception innerException)

Parameters

message string
diagnostics StreamDiagnostics
innerException Exception

Properties

Diagnostics

State of the SSE reader at the point of failure.

public StreamDiagnostics Diagnostics { get; }

Property Value

StreamDiagnostics