libvt.exc¶
Exceptions raised by libvt.
-
exception libvt.exc.LibVtError¶exception libvt.exc.LibVtError¶
Bases:
ExceptionBase exception for all libvt errors.
-
exception libvt.exc.ProtocolError¶exception libvt.exc.ProtocolError¶
Bases:
LibVtErrorRaised when
Policy.strictrejects a malformed or unsupported sequence.
-
exception libvt.exc.ScreenAssertionError¶exception libvt.exc.ScreenAssertionError¶
Bases:
LibVtError,AssertionErrorRaised when
assert_screen()detects a screen mismatch.
-
exception libvt.exc.TerminalTimeoutError¶exception libvt.exc.TerminalTimeoutError¶
Bases:
LibVtError,TimeoutErrorRaised when an async terminal stream or PTY wait exceeds its deadline.
- Parameters:
message (
str|None) – Concise single-line error summary; omitted whenNone.parser_state (
ParserState|None) – Parser state at timeout or premature EOF.screen_text (
str) – Visible screen text at failure time.recent_bytes (
collections.abc.Buffer) – Trailing raw bytes fromFlightRecorder.eof (
bool) –Truewhen the stream closed before the predicate matched.diagnostics (
str) – Pre-rendered viewport box and flight-recorder diagnostic block.attach_note (
bool) – WhenTrue(default), attach formatted diagnostics via PEP 678BaseException.add_note()while keepingstr(exc)single-line.
-
exception libvt.exc.UnsafePasteError¶exception libvt.exc.UnsafePasteError¶
Bases:
LibVtErrorRaised when pasted text contains control or bracket-escape bytes.