class

Termisu::ParseError

Inherits Termisu::Error / Exception / Reference / Object

Error raised when parsing terminfo binary data fails.

Provides specific error types to distinguish between different failure modes:

  • Invalid magic number (unsupported format)
  • Truncated data (file too small)
  • Invalid header values
  • Corrupted string table

Constructors

invalid_header(field : String, value : Int16) : ParseError

Creates an InvalidHeader error.

Source
invalid_magic(actual : Int16) : ParseError

Creates an InvalidMagic error. Magic numbers: 282 (0o432) for standard, 542 for extended format.

Source
invalid_offset(offset : Int32, max : Int32) : ParseError

Creates an InvalidOffset error.

Source
new(type : Type, message : String, details : String | Nil = nil)
Source
truncated_data(expected : Int32, actual : Int32) : ParseError

Creates a TruncatedData error.

Source

Instance methods

details
Source
type
Source

Nested types