Exception: RatatuiRuby::Error
- Inherits:
-
StandardError
- Object
- StandardError
- RatatuiRuby::Error
- Defined in:
- lib/ratatui_ruby.rb
Overview
Base error class for RatatuiRuby.
All library-specific exceptions inherit from this class. Catch this to handle any RatatuiRuby error generically.
Example
– SPDX-SnippetBegin SPDX-FileCopyrightText: 2026 Kerrick Long SPDX-License-Identifier: MIT-0 ++
begin
RatatuiRuby.run { |tui| ... }
rescue RatatuiRuby::Error => e
puts "RatatuiRuby error: #{e.message}"
end
– SPDX-SnippetEnd ++