GitHub

StreamError

API reference for StreamError.

A stream refusing a write by its state, with Node's code and message: the cause Effect's Node platform gives the PlatformError (ERR_STREAM_WRITE_AFTER_END, "write after end", once the stream ended; ERR_STREAM_PREMATURE_CLOSE, "Premature close", once it was destroyed).

Attributes

AttributeTypeDescription
code= code

Functions

__init__

__init__(code, message) -> None
ParameterTypeDescription
codestr
messagestr
def __init__(self, code: str, message: str) -> None:
    super().__init__(message)
    self.code = code