Skip to main content

Module io_error

Module io_error 

Source
Expand description

IO.Error: its constructors, the translation of OS error codes (lean_decode_io_error, after libuv’s classification and messages, as the C runtime does), and IO.Error.toString.

Functions§

io_error_to_string⚠
IO.Error.toString of the borrowed e.
lean_decode_io_error⚠
lean_decode_io_error: the IO.Error of the C library’s errno value errnum; fname (borrowed) is the file name or null.
lean_decode_uv_error⚠
lean_decode_uv_error: the IO.Error of the libuv error errnum (a negated errno).
lean_mk_io_error_eof⚠
IO.Error.unexpectedEof.
lean_mk_io_error_other_error⚠
IO.Error.otherError code details (consumes details).
lean_mk_io_user_error⚠
IO.userError msg (consumes msg).