Skip to main content

error_stream_with_code

Function error_stream_with_code 

Source
pub fn error_stream_with_code(
    message: String,
    code: String,
    provenance: Vec<String>,
    recoverable: bool,
) -> Pin<Box<dyn Stream<Item = PlexusStreamItem> + Send>>
Expand description

Create an error stream with error code

Returns a single-item stream containing an error event with a code.