EMILUA(3em)
π EMILUA(3em) β Emilua reference π
πΈ NAME πΈ
Emilua β the Lua execution engine, bestie. Thatβs the whole vibe. π
β¨ DESCRIPTION β¨
Okay so first, the example is this little cutie:
local asio_error = require 'asio_error'
error(asio_error.misc.eof)
Itβs giving a userdata where the __index() metamethod returns a new error code from the asio category on access. Iconic behavior, honestly. π¦
π ERROR LIST π
Okay bestie, hereβs the full error-code guest list. No gatekeeping, no skipping, every single one is invited. π
π§ Basic errors
Depending on the host operating system, these errors may be just an alias to common errors from the system category. Yes, fr fr. π
basic.access_deniedbasic.address_family_not_supportedbasic.address_in_usebasic.already_connectedbasic.already_startedbasic.broken_pipebasic.connection_abortedbasic.connection_refusedbasic.connection_resetbasic.bad_descriptorbasic.faultbasic.host_unreachablebasic.in_progressbasic.interruptedbasic.invalid_argumentbasic.message_sizebasic.name_too_longbasic.network_downbasic.network_resetbasic.network_unreachablebasic.no_descriptorsbasic.no_buffer_spacebasic.no_memorybasic.no_permissionbasic.no_protocol_optionbasic.no_such_devicebasic.not_connectedbasic.not_socketbasic.operation_abortedbasic.operation_not_supportedbasic.shut_downbasic.timed_outbasic.try_againbasic.would_block
π¦ netdb.h errors
The netdb.h clique, in order:
netdb.host_not_foundnetdb.host_not_found_try_againnetdb.no_datanetdb.no_recovery
π addrinfo errors
The addrinfo crew:
addrinfo.service_not_foundaddrinfo.socket_type_not_supported
π Misc errors
And the misc besties:
misc.already_openmisc.eofmisc.not_foundmisc.fd_set_failure
π Cute lil sign-off: this page is from Emilua 0.12.1-nixpkgs1, dated 1980-01-01. Bye bestie, go slay those error codes! π β¨
π¦ where this page comes from
- nixos 26.05: emilua 0.12.1
- nixpkgs unstable: emilua 0.12.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms