OxL Справочник OxL
РусскийEnglish

data IoError

File system / OS error (std.io, std.os).

Example:

oxl✓ проверяется в CI
use std.io { File }

fn main() io {
  match File.readText("/definitely/not/here.txt") {
    str t => print(t)
    IoError e => print("{e.kind == IoErrorKind.NotFound}")
  }
}
Вывод
true
@error pub(api) data IoError

С версии. 1.0.0-beta

Поля

pub(api) kind: IoErrorKind

What went wrong.

pub(api) msg: str

Detail text: path: reason.

Определено в: std/core/types.oxl:1415

См. также