Builds an instance of the exception from the current system error value (Errno.value).
DEPRECATED Use .from_os_error instead
Builds an instance of the exception from the current windows error value (WinError.value).
Builds an instance of the exception from the current Windows Socket API error value (WinError.wsa_value).
SystemError
Exception
Exception
Reference
Reference
Reference
Object
Object
Object
Builds an instance of the exception from the current system error value (Errno.value).
The system message corresponding to the OS error value amends the message. Additional keyword arguments are forwarded to the exception initializer .new_from_os_error.
DEPRECATED Use .from_os_error instead
Builds an instance of the exception from the current windows error value (WinError.value).
The system message corresponding to the OS error value amends the message. Additional keyword arguments are forwarded to the exception initializer .new_from_os_error.
Builds an instance of the exception from the current Windows Socket API error value (WinError.wsa_value).
The system message corresponding to the OS error value amends the message. Additional keyword arguments are forwarded to the exception initializer.
© 2012–2026 Manas Technology Solutions.
Licensed under the Apache License, Version 2.0.
https://crystal-lang.org/api/1.19.0/IO/Error.html