From af6533d774941f4d386ee00fccf5f38a1ee01b18 Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Sat, 8 May 2021 09:50:42 -0400 Subject: [PATCH] docs for exceptions --- terminal.d | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/terminal.d b/terminal.d index 47e7ba4..3fa4412 100644 --- a/terminal.d +++ b/terminal.d @@ -7225,9 +7225,15 @@ struct ScrollbackBuffer { } +/++ + Thrown by [LineGetter] if the user pressed ctrl+c while it is processing events. ++/ class UserInterruptionException : Exception { this() { super("Ctrl+C"); } } +/++ + Thrown by [LineGetter] if the terminal closes while it is processing input. ++/ class HangupException : Exception { this() { super("Terminal disconnected"); } }