Skip to content

Stderr

1 min read

Import: import system.io;

Read the usage guide for examples and common tasks. This reference lists the public declarations for this part of the library. See Reading API signatures for parameter and result notation.

Stderr

Standard error as a byte stream. Obtain it through System.stderr.

public class Stderr: Writer

write

Writes bytes and returns the number accepted; failures leave completed writes in effect. Call flush to deliver any buffered bytes.

public unique fun write(data: byte[]): Result<int, IoError>

flush

Delivers buffered output; returns an I/O error when flushing fails.

public unique fun flush(): Result<Unit, IoError>