class Termisu::IOError

Overview

Error raised for terminal I/O operations.

Wraps system-level I/O errors with additional context about the operation that failed. Handles EINTR transparently via retry.

Defined in:

termisu/error.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(errno : Errno, operation : String) #

[View source]
def self.read_failed(errno : Errno) : IOError #

Creates an error for a failed read() call.


[View source]
def self.select_failed(errno : Errno) : IOError #

Creates an error for a failed select() call.


[View source]

Instance Method Detail

def errno : Errno #

The underlying system errno value.


[View source]